Repository navigation
Attribute Mapbox and OpenStreetMap in-app - #1497
Conversation
ℹ️ now pops up an action sheet with explicit attribution and a direct link to the Map Feedback tool.
|
Much improved over the Safari hyperlink. Seeing an action sheet popup from an ℹ️ button feels jarring, though, maybe because only one of the three items is immediately obvious as being actionable. But it feels good enough for now, methinks. Eventually doing something cool with a modal view and real text will be a good opportunity to subtly show off. 😏 |
Apple does it in Maps, though it's in an app toolbar, not on the map. I think it's fine. iPad popover seems to work well, too: Except for post-rotation: Maybe this is ameliorated by iOS 8's |
|
That Apple Maps alert-ish view is crazy, hah. Segmented buttons, and the data attribution button is different than the actions. I think my perception of weirdness is more to do with the non-actionable action items — it's not immediately clear that "© OpenStreetMap" is a thing you can do. But yeah, a little temporary weirdness (that I can't think of a good way to fix/reword, anyway) isn't the end of the world. |
|
Originally, with 965f90c, I stuck the copyright notices in the alert title and called the first button “About This Map”, which sounds more actionable. But @lxbarth and I were concerned that this style wouldn’t technically meet Mapbox’s attribution requirements, which requires a hyperlinked copyright notice. Plus, a direct link to OpenStreetMap will be welcome on the OSM talk list, I’m sure. 😃 |
Indeed, a constraint to the popover has to be broken when the device is rotated: It looks like a UIKit bug that probably wouldn’t affect I think it’s because the center of the ℹ️ is a bit closer to the right edge than the center of a bottom bar button would be. |
|
Here's a quick go at
@incanus I'm not sure what you mean by "safe" — it definitely won't run in iOS 7, but it can be checked against. I think I'm being dense here. 😢 |
|
Hah, jinx @1ec5. |
Add long/lat/zoom to feedback URL
Constraints go invalid when rotating an iPad while the popover is visible and anchored to the ℹ️.
The Map Feedback tool is still using mapbox.js, so it doesn’t support fractional zoom levels yet.
|
With 7da7f65, the popover is dismissed when the device is rotated (and presumably whenever the map resizes), before the constraints can go invalid. |
Attribute Mapbox and OpenStreetMap in-app
Also updated accessibility information for the ℹ️ to reflect changes in #1497.
|
This code landed with a few modifications in #8373. |





With this change, ℹ️ pops up an action sheet with the required attribution and a direct link to the Map Feedback tool. Eventually we’ll tackle something more along the lines of #1265 (comment), but this should be sufficient for beta 1.
/cc @lxbarth @incanus