UpdateMapEvent

open class UpdateMapEvent

A class used for a new map event like setting new map position, set map bounds, rotate/tilt/zoom/recenter map, etc. Call `MapstedmapApi.mapView().camera().onUpdateMapEvent(UpdateMapEvent)` to pass in to update map pragmatically.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class Builder

Functions

Link copied to clipboard
open fun getDuration(): Float
Method to get duration of the update map event performed.
Link copied to clipboard
Method to know if re-draw map event is needed
Link copied to clipboard
Method to get the map bounds.
Link copied to clipboard
open fun getNewMapPos(): Mercator
Method to get new map position.
Link copied to clipboard
open fun getNewZone(): Zone
Method to get new zone on the map.
Link copied to clipboard
Method to get a list of update map view events
Link copied to clipboard
open fun setDuration(duration: Float)
Method to set the duration of the update map event performed.
Link copied to clipboard
open fun setIfRedrawMap(ifRedrawMap: Boolean)
Method to set if re-draw map event is needed.
Link copied to clipboard
open fun setMapBounds(mapBounds: MapstedMapBounds)
Method to set the map bounds.
Link copied to clipboard
open fun setNewMapPos(newMapPos: Mercator)
Method to set new map position.
Link copied to clipboard
open fun setNewZone(newZone: Zone)
Method to set new zone on the map.
Link copied to clipboard
open fun setUpdateMapViewEvents(updateMapViewEvents: List<UpdateMapViewEvent>)
Method to set update map view events.