-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add Mapbox logo and attribution button to Android #2074
Comments
@bleege Perhaps you can do this once you get location marker refactor finished? |
If you can provide a screenshot of the iOS version + MapBox logo. I will take this up. |
The Mapbox logo that's bundled with iOS lives here: /platform/ios/resources The logo stays pinned to the bottom-left and the attribution control is at the bottom-right. Both must be movable/hide-able. |
No, that appears to correspond to the gears debug menu on iOS. I'm not sure which direction @ljbade and @bleege want to take the attribution control on Android, but here are the strings and here are the links/actions on iOS. This contains:
|
I think the attribution control should be fairly easy to implement with some sort of popup dialog. Only thing not settled yet is metrics stuff. @tobrunvannuland - yeah every app might have different UI overlaid on the map. At a minimum we should allow configuring of which corner the logo is in, and possibly provide fine tuning of the margin. |
Oh, I should say: we've made the logo and attribution controls mildly configurable on iOS and they are hide-able/movable. See #1781. |
I will implement a solution based on CompassView implementation:
Will use following method signatures: LogoView:
AttributionControlView:
|
@tobrunvannuland This all looks great! Just a few pieces of feedback: Logo and Attribution should always appear on the MapView, so there's no need to implement Here's what and how iOS provides for Attribution links. The top 3 all open Web pages in the native Web browser which is the same functionality that we can use in Android. No need to implement As for the UI pattern to display / hold this, please feel free to use what you think works best. |
@bleege Let me know what you prefer. |
@tobrunvannuland Hmm I think a WebView would interfere less with the hosting Activity/app of the MapView? We need to be careful we don't break any UI flow of the hosting app. |
@tobrunvannuland I'm intrigued by the Chrome custom tabs, but I think @ljbade is correct about firing an Intent to kick the germane Web site out to a WebVeiw interfering less with an app's UX. Since we're building an SDK, we can't assume any access to non MapView UI components. |
@bleege True, I mean what happens if a user does not have a web browser or Chrome installed on their phone? We should remember we want our Android SDK to work on all variations of Android if possible, not just Google blessed ones. It is entirely possible Chineese Android based phones come with a completely different browser. |
@ljbade I didn't see examples of license's requiring display inside of apps in the list. Did I miss something? If not, I think just having them in the LICENSE.md file as we do should be fine. |
Fixed in #2292. |
After the compass and location marker the only missing UI elements vs iOS is the Mapbox logo and attribution button.
The text was updated successfully, but these errors were encountered: