Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Properties to enable/disable attribution/logo bug #1770

Closed

Description

@tomtaylor

I'd really like to be able to disable the attribution button (I'm handling it separately in the app), and the Mapbox logo (it conflicts with a UI element). This was possible in RMMapView - it'd be great to get those back in. Thanks!

Activity

  1. friedbunny commented on Jun 22, 2015

    @friedbunny
    Contributor

    Thanks for the request, Tom! We should definitely include these settings.

    The RMMapView settings are:

    I don't like the naming inconsistency — can we settle on either hide or show?

    /cc @incanus @1ec5

  2. added
    iOS
    on Jun 22, 2015
  3. incanus commented on Jun 22, 2015

    @incanus
    Contributor

    The naming logic backstory is:

    • The dev should be aware that they are hiding attribution, which we want to make sure they understand in terms of our data licensing agreements.
    • The logo bug defaults to shown.

    We could change .showLogoBug to .hideLogoBug pretty easily, though.

  4. picciano commented on Jun 22, 2015

    @picciano

    Might as well throw in .hideCompass too.

  5. incanus commented on Jun 22, 2015

    @incanus
    Contributor
  6. 1ec5 commented on Jun 22, 2015

    @1ec5
    Contributor

    The dev should be aware that they are hiding attribution

    By default, the logo bug would be “not hidden”. We should avoid obfuscating the API with that double negative, just like it would be a usability crime to put a “Do not …” switch in Settings.

    If we want to make hiding attribution a deliberate action, we could expose that capability through a method rather than a property: [mapView hideAttribution]. Or make setting .showLogoBug trigger a compiler warning that can be suppressed with a Clang pragma. 😉

    (Also, Cocoa naming convention calls for property names to be descriptive, not imperative. So .showsCompass, not .showCompass.)

  7. picciano commented on Jun 22, 2015

    @picciano

    Or...

    mapView.compassView.hidden = NO;
    mapView.logoView.hidden = YES;
    mapView.attributionButton.hidden = YES;
    

    Just make these views properties and there is an added benefit of being able to replace the design of these elements.

  8. 1ec5 commented on Jun 22, 2015

    @1ec5
    Contributor

    That’s a good point, @picciano. We aren’t doing anything fantastically clever with these views anyways.

  9. self-assigned this
    on Jul 1, 2015
  10. added this to the iOS Beta 3 milestone on Jul 1, 2015
  11. added a commit that references this issue on Jul 1, 2015
    76333df
  12. incanus commented on Jul 1, 2015

    @incanus
    Contributor

    I've added these in #1815 (pending tests), which will make it into the next release. They are readonly for now since this hits the use case of hiding/showing but there are constraints involved with actually replacing the views, so we should test around that more before allowing replacement.

  13. added a commit that references this issue on Jul 1, 2015
    424629d
  14. added a commit that references this issue on Jul 1, 2015
    b2d5d17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureiOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions