map.transition
transition(targetMode: MapMode, _options?: TransitionOptions): Promise<void>Start an animated transition to the target mode.
Emits "map:modeChanged" (with { from, to }) at the start of the
transition and "map:transitionComplete" (with { mode }) when done.
No-ops when map is disabled, already in the target mode, or a transition is already running.
Phase 3: state-only transition. Full tile-layer crossfade requires the
React layer refactor that wires MapTransition to both SlippyMapFlat
and SlippyMapGlobe scene objects (future work).
targetMode | MapMode | |
_options | TransitionOptions |
Returns: Promise<void>