Mapwize UI

Fully featured and ready to use Widget to add Mapwize Indoor Maps and Navigation in your Web app.

And it's open-source !

MapwizeUI version 1.0.4 uses Mapwize SDK version 3.3.2
For documentation about Mapwize SDK objects like Venue, Place, MapOptions... Please refer to the Mapwize SDK documentation on


The Mapwize UI widget comes with the following components:

Browser support

The SDK is tested against the following browsers:



Add the following npm package to your project :

npm install mapwize-ui --save


You use the CDN url directly in your HTML page

<script type="text/javascript" src=""></script>



Mapwize UI can be instantiated with the constructor:, options)

The map method return a Promise that is resolved when the map and the UI are ready

Map parameters


The HTML element in which Mapbox GL JS will render the map, or the element's string id . The specified element must have no children. This parameter is optionnal, default point to the id: mapwize


The following parameters are available for map initialization:

Parameters usage

Without options Without container parameter With container parameter With container option
html <div id="mapwize"></div> <div id="mapwize"></div> <div id="myMap"></div> <div id="myMap"></div>
js'myMap', options){ container: 'myMap'})

Simplest example (open in jsfiddle)

<div id="mapwize"></div>'YOUR_MAPWIZE_API_KEY_HERE')

Center on venue

To have the map centered on a venue at start up:

<div id="mapwize"></div>
var options = {
  centerOnVenue: 'YOUR_VENUE_ID'
} => {
  console.log('Mapwize map and ui are ready to be used')

Center on place

To have the map centered on a place with the place selected at start up:

<div id="mapwize"></div>
var options = {
  centerOnPlace: 'YOUR_PLACE_ID'
} => {
  console.log('Mapwize map and ui are ready to be used')

Demo application

The src/index.html file shows how to quickly add Mapwize UI to an HTML page.

The only thing you need to get started is a Mapwize api key.
You can get your key by signing up for a free account at

Once you have your API key, copy it to index.html in the map options and run the app using

npm run start

Please note that if you are using this index.html outside of a the Webpack environment, you will need to manually import Mapwize UI by adding

<script type="text/javascript" src="./dist/mapwizeui.js"></script>

or using the CDN as explained in the installation section.