Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Animating with MapScenes

Caden edited this page Jun 20, 2020 · 6 revisions

The MapRenderer's SetMapScene API automatically handles animation of the map view. The MapScene instance will specify a target zoom level and location which the MapRenderer will animate to.

The SetMapScene API returns a yieldable object that can be used within a co-routine to wait until the animation has completed. Note, it is not required to call the animation from a co-routine. If the yield-ing is not required, the object returned from SetMapScene can be ignored.

MapScene types

Name Description
MapSceneOfLocationAndZoomLevel Map is focused to the specified location and zoom level
MapSceneOfLabelAndZoomLevel Map is focused to the specified label's location and the specified zoom level
More to be added...

Clone this wiki locally