getViewport

abstract fun getViewport(): BoundingBox?

This method will be called by com.mapbox.search.analytics.AnalyticsService to access the map's viewport visible to a user. Provided viewport will be used for better and more accurate analytics data.

Return

Bounding box for current map viewport or null.