Whether the outdoorView is enabled.
Returns the underlying MapLibre GL map for advanced, non-camera usage, such as adding custom layers, sources, GeoJSON, or deck.gl overlays.
IMPORTANT: Moving the camera through this object is not supported. Camera
control (center, zoom, bearing, pitch, elevation) is owned by Mappedin JS,
so MapLibre camera methods such as flyTo, easeTo, jumpTo, panTo,
zoomTo, setZoom, setCenter, setBearing, or setPitch may be
overridden. Use the Camera API instead — it is the supported,
fully-featured path (animation promises, collision-aware framing).
To move the camera, use the Camera API instead:
The MapLibre GL Map instance, or undefined if the outdoor view is disabled.
Limitations:
Whether the outdoorView is visible.
Hide the outdoor map.
OptionalexcludedStyleLayerIds: string[]{string[]}
Set outdoor view opacity.
{number | 'initial'}
OptionalexcludedStyleLayerIds: string[]{string[]}
Set the style of the outdoor map. Use one of Mappedin's predefined styles or link to a custom style.
{any}
Show the outdoor map.
The outdoor map shown around the Mappedin indoor map can be manipulated to show or hide additional information. It can be used to add GeoJSON based geometry, images, deck.gl layers and more.
The outdoor map is accessed using MapView.Outdoor, which returns a maplibregl.Map object. MapLibre GL JS is a TypeScript library that uses WebGL to render interactive maps from vector tiles in a browser. The Mappedin SDK makes use of it to display the outdoor map.
By providing access to the MapLibre map used to draw the outdoor map, the Mappedin SDK enables developers to draw on and manipulate the outdoor map. Developers can use most capabilities of MapLibre GL JS. The key exception is Interactivity, which is not available; direct Camera control is discouraged because Mappedin JS owns the outdoor camera (see below).
User touch and click events are handled by Mappedin JS and are not propagated to the outdoor map layer. Camera movement is also driven by Mappedin JS; moving the MapLibre camera directly is not supported and may be overridden.
IMPORTANT: Moving the camera via
Outdoor.map(for exampleOutdoor.map.flyTo/easeTo/jumpTo/setZoom) is not supported — Mappedin JS controls the outdoor camera and may override these calls. Use MapView.Camera (for example Camera.animateTo, Camera.set, or Camera.focusOn) instead.Refer to the Outdoor Map Guide for more information and interactive examples.