scaleBy

fun MapPluginExtensionsDelegate.scaleBy(amount: Double, screenCoordinate: ScreenCoordinate?, animationOptions: MapAnimationOptions? = null, animatorListener: Animator.AnimatorListener? = null): Cancelable

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 MapView as part of MapInitOptions.plugins.

Return

Cancelable animator set object or empty cancelable object if associated MapView was destroyed.

Parameters

amount

The amount to scale by

screenCoordinate

The optional focal point to scale on

animationOptions

Transition options (animation duration, listeners etc)