scaleBy

Extension scaleBy() function for MapPluginExtensionsDelegate Scale the map by with optional animation.

Camera plugin with id = Plugin.MAPBOX_CAMERA_PLUGIN_ID must be added while constructing com.mapbox.maps.MapView as part of com.mapbox.maps.MapInitOptions.plugins.

Return

Cancelable animator set object or null if associated map object was garbage collected.

See also

com.mapbox.maps.MapInitOptions

Parameters

amount

The amount to scale by

animationOptions

Transition options (animation duration, listeners etc)

screenCoordinate

The optional focal point to scale on

fun MapPluginExtensionsDelegate.scaleBy(amount: Double, screenCoordinate: ScreenCoordinate?, animationOptions: MapAnimationOptions?): Cancelable