You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Properties to enable/disable attribution/logo bug #1770
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!
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.)
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.
Activity
friedbunny commentedon Jun 22, 2015
Thanks for the request, Tom! We should definitely include these settings.
The
RMMapViewsettings are:.hideAttribution.showLogoBugI don't like the naming inconsistency — can we settle on either
hideorshow?/cc @incanus @1ec5
incanus commentedon Jun 22, 2015
The naming logic backstory is:
We could change
.showLogoBugto.hideLogoBugpretty easily, though.picciano commentedon Jun 22, 2015
Might as well throw in
.hideCompasstoo.incanus commentedon Jun 22, 2015
1ec5 commentedon Jun 22, 2015
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.showLogoBugtrigger 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.)picciano commentedon Jun 22, 2015
Or...
Just make these views properties and there is an added benefit of being able to replace the design of these elements.
1ec5 commentedon Jun 22, 2015
That’s a good point, @picciano. We aren’t doing anything fantastically clever with these views anyways.
fixes #1770: rename & expose compass, logo, and attribution
incanus commentedon Jul 1, 2015
I've added these in #1815 (pending tests), which will make it into the next release. They are
readonlyfor 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.Merge pull request #1815 from mapbox/expose-ios-subviews
fixes #1770: rename & expose compass, logo, and attribution