-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Content insets #3627
Comments
I'm going to review @lgeromegnace's PR in #3687 and then build an example using it in the TestApp so that we can verify it and demonstrate to others how it's used. |
The API build out from #3687 has now been been reviewed and merged into |
Thanks for the clarification @1ec5. To help illustrate this better (and the fact that we still have API work todo), I added a Marker to the map. |
Looking at the Google Maps API the only place (that I can find) that they expose any type of content insets is in I'm also wondering about timing for this as the manual |
I think this is a good place to diverge from what the Google Maps SDK provides. We started with a uniform padding concept in GL JS, but in mapbox/mapbox-gl-js#1675 we decided to allow each side to be specified independently. Uniform padding isn’t suitable for use cases such as a translucent toolbar or floating search bar at the top. |
@tobrun Yep, let's punt on #3627 (Content Insets) until
Nope, the Content Insets don't have to be included in the initial iteration on the MapboxMap work in #3145 . That said this is likely going to be an important feature for future Navigation work so working on this immediately after MapboxMap lands will be important. It sounds like you have things well underway with this from your work in #3145 so I'll let you finish #3627 off at that time. |
@bleege 👍 |
As mentioned in #3761 (comment) it seems that Google Maps SDK is exposing this as |
Content insets were implemented in mbgl and for iOS and OS X in #3583. MapView should expose some sort of inset or padding property so that the map’s center can be shifted downward to account for e.g. a translucent or floating toolbar at the top.
/cc @tobrun
The text was updated successfully, but these errors were encountered: