Viewport Provider
fun fun interface ViewportProvider
Content copied to clipboard
Provides map viewport, if you have map in your application.
Functions
getViewport
Link copied to clipboard
This method will be called in the following cases:
Search engine requests the map's viewport visible to a user. Provided viewport will be used as a bounding box for upcoming search request, if SearchOptions.boundingBox or CategorySearchOptions.boundingBox aren't specified.
com.mapbox.search.analytics.AnalyticsService requests the map's viewport visible to a user. Provided viewport will be used for better and more accurate analytics data.