Experimental
Experimental
Disable Stacked Maps and zoom in to the current map. Stacked Maps state will become INACTIVE.
Promise when all animations are complete.
mapView.StackedMaps.disable();
Experimental
Enable Stacked Maps. If a Journey is drawn beforehand the default behaviour is to only display the floors that are part of the journey. TStackedMapsOptions can be used to enabling display of all maps including those that are not part of the journey. Use showOverview to expand the maps vertically after enabling.
Upon enabling, map state will become STACKED and Stacked Maps state will become ACTIVE.
Optional
opts: TStackedMapsOptionsPromise when all animations are complete.
// Create a Journey
const startLocation = mapView.venue.locations.find(...);
const endLocation = mapView.venue.locations.find(...);
mapView.Journey.draw(startLocation.directionsTo(endLocation));
// Enable and show Stacked Maps Overview
mapView.StackedMaps.enable({
verticalDistanceBetweenMaps: 150
});
mapView.StackedMaps.showOverview();
Experimental
Used when in OVERVIEW state to replace the maps in the current stack after clearing or creating a Journey. Use this to hide maps that are not part of the journey or to display all maps in the MapGroup.
Optional
options: TStackedMapsOptionsOptions to adjust the overview. Each option defaults to the setting passed in enable, unless provided.
Promise when all animations are complete.
mapView.Journey.draw(...);
mapView.StackedMaps.enable();
mapView.StackedMaps.showOverview();
mapView.Journey.clear();
mapView.StackedMaps.restack();
Experimental
Scroll the camera to a specific map in OVERVIEW state.
Optional
duration: numberPromise when all animations are complete.
// Scroll the camera to a specific map if Stacked Maps is in Overview state
mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
if (maps.length <= 0) return;
if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
mapView.StackedMaps.scrollToMap(maps[0]);
}
});
Experimental
Expand and display all maps in the current MapGroup. If a Journey has been drawn, vertical paths between connections are displayed. Stacked Maps must be enabled beforehand and state will become OVERVIEW.
Optional
animationOptions: TAnimationOptionsPromise when all animations are complete.
mapView.Journey.draw(...)
mapView.StackedMaps.enable();
mapView.StackedMaps.showOverview();
Experimental
Optional
cameraOptions: TCameraTransform & TAnimationOptionsPromise when all animations are complete.
// Zoom into a clicked map if Stacked Maps is in Overview state
mapView.on(E_SDK_EVENT.CLICK, ({ maps }) => {
if (maps.length <= 0) return;
if (mapView.StackedMaps.state === STACKED_MAPS_STATE.OVERVIEW) {
mapView.StackedMaps.zoomInToMap(maps[0]);
}
});
Experimental
Get the current state of Stacked Maps.
The current STACKED_MAPS_STATE
API for showing multiple maps involved in a Journey as a vertical stack.