MapController
Controls general map properties. It also provides two helper methods which can do a conversion between a Point on the screen and its GeoPoint counterpart.
Functions
Converts a Point on the MapView to a position on the map. Returns Result with GeoPoint or PointConversionFailure when cannot obtain a coordinate from the given point. It can occur when the point is not on the map.
Provides the Result that contains VisibleRegion or InternalFailure, where VisibleRegion is currently visible region. If the map is completely zoomed out, this property will return four GeoPoints, which are combination of min/max latitude and longitude ranges. InternalFailure is returned if some of four coordinates are invalid and it is not possible to obtain a coordinate.
Converts a position on the map into the MapView point.
Applies a frame rate cap on the map renderer. It can be useful for scenarios where the map is not fully visible to the user hence there is no need to render it with its full performance.
Sets map language. If requested locale is not supported, the map will fall back to NGT (Neutral Ground Truth), that means official languages for all regions in local scripts if available.
Sets padding on the map. For the map, the padding means a safe area of the MapView which does not receive any input from the user. The safe area can be useful for some sections of the user interface displaying UI components like buttons, sliders etc.