ExperimentalOptionalbearing?: numberThe initial bearing of the map, in degrees.
Optional Experimentaldebug?: booleanEnable debug mode to check the visual representation of performance stats.
OptionalflipImagesToFaceCamera?: booleanEnable or disable the flip of images to face the camera.
OptionalinitialFloor?: Floor | stringFirst floor to be rendered. By default, floor with the elevation that's closest to 0 is rendered. All floors will be sorted by elevation in ascending order.
OptionalinjectStyles?: booleanAutomatically inject necessary styles into the document head. If false, the index.css file needs to be manually imported.
import '@mappedin/mappedin-js/lib/index.css';
...
await show3dMap(...);
OptionalmultiFloorView?: TMultiFloorViewOptionsOptions for controlling multi-floor view.
OptionaloutdoorView?: {The outdoor view options.
Optionalenabled?: booleanEnable or disable the outdoor view.
OptionallayersHiddenByGeometry?: string[]Layers that should be hidden by geometry. This is useful when you want to hide certain layers when they are below the geometry.
OptionallowDpi?: booleanReduces the pixel ratio for MapLibre rendering to improve framerate performance. When enabled, the rendering quality will be lower but performance will be better, which can be useful on devices with high-DPI displays or limited GPU capabilities.
Optionalstyle?: stringA url to a style specification conforming to the Maplibre Style Spec.
Use the environment setting to switch environments.
Optionaltoken?: stringThe token is used to fetch outdoor tiles, which will then be rendered.
Optionalpitch?: numberThe initial pitch of the map, in degrees.
OptionalpreloadFloors?: Floor[]Preload floors for the map. Allows floors to appear faster but requires more time and memory up front.
OptionalscreenOffsets?: InsetPaddingThe screen offsets of the map, in screen pixels.
OptionalshadingAndOutlines?: booleanEnable shading of bottoms of geometry along with outlines to make geometry stand out.
Optional Experimentalstyle?: {Style options for the map.
OptionalbackgroundAlpha?: numberBackground alpha value. Only relevant if outdoor map is disabled.
OptionalbackgroundColor?: stringBackground color. Only relevant if outdoor map is disabled.
Optionaloutlines?: booleanSet the global outlines for all elements. True will enable outlines, false will disable them.
Optionalshading?: boolean | ShadingSet the global shading for all elements. True will use default values, false will disable shading.
OptionalwallTopColor?: stringSpecify a color for the top of wall geometry.
OptionalwallTopColor?: stringSpecify a color for the top of wall geometry.
OptionalzoomLevel?: numberThe initial zoom level of the map, in mercator zoom levels. If it is not specified, it will default to the level that fits the map bounds.
Options for showing a 3D map.