Map Engine Setup
Mapbox V3
const mapView = new mapsindoors.mapView.MapboxV3View({
accessToken: 'YOUR_MAPBOX_ACCESS_TOKEN',
element: document.getElementById('map'),
center: { lat: 38.8974905, lng: -77.0362723 },
zoom: 17,
maxZoom: 25,
mapsIndoorsTransitionLevel: 17,
showMapMarkers: false,
lightPreset: 'dusk'
});
// Then the MapsIndoors SDK is initialized
const mi = new mapsindoors.MapsIndoors({
mapView: mapView,
floor: "1",
labelOptions: {
pixelOffset: { width: 0, height: 18 }
}
});


Mapbox V2

Last updated
Was this helpful?