Map Engine Setup
MapsIndoors provides support for both Mapbox GL JS v2 and v3. Our commitment to staying at the forefront of mapping technologies ensure that you have the flexibility to choose the Mapbox version that best align with your requirements.
Mapbox V3
In order to access Mapbox v3 and its options, use mapView
:
For Mapbox v3, we exposed three new constructor parameters for Mapbox v3:
mapsIndoorsTransitionLevel: number
- controls transition between Mapbox and MapsIndoors data. Defaults to17
. Setting it to17
will make a transition between Mapbox and MapsIndoors data between zoom levels17
to18
.showMapMarkers: boolean
- boolean parameter that dictates if Mapbox map markers such as POIs should be shown or not. By not setting this parameter, Mapbox map markers will be hidden as soon as MapsIndoors data is shown.lightPreset: string
- sets global light. Can be set to: day, dawn, dusk or night. Defaults to day.
The new Mapbox v3 Standard Style design provides the new design of the map and 3D buildings.
Mapbox' extruded buildings are not visible when MapsIndoors data is shown at the specified zoom level:
You can now choose between 4 different types of light: day, dawn, night or dusk.
You can read more about the latest Mapbox v3 Standard Style here.
Mapbox V2
In order to access Mapbox v2 and its options, use mapView
and instantiate it as a new MapsIndoors object:
After successful mapView
load you should be able to use Mapbox v2:
Last updated