Class

MapboxView

mapsindoors.mapView.MapboxView(args)

Constructor

# new MapboxView(args)

MapboxView is the MapsIndoors MapView for MapBox.
Parameters:
Name Type Attributes Default Description
args Object A complete list of Mapbox parameters can be found here.
element HTMLElement The HTML element in which the map will be rendered.
accessToken string The Mapbox access token.
center Object | LatLngLiteral <optional>
{lat: 0, lng: 0} The inital geographical centerpoint of the map.
zoom number <optional>
0 The initial zoom level of the map.
maxZoom number <optional>
The maximum zoom level of the map.
pitch number <optional>
0 The initial pitch (tilt) of the map, in degrees.
bearing number <optional>
0 The initial bearing (rotation) of the map, in degrees.
Example
const mapView = new mapsindoors.mapView.MapboxView(...);
const mapsIndoors = new mapsindoors.MapsIndoors({mapView: mapView})

Extends

Methods

# get(key) → {*}

Parameters:
Name Type Description
key string
Overrides:
*

# set(key, value)

Parameters:
Name Type Description
key string
value Object
Overrides:

# setValues(values)

Parameters:
Name Type Description
values Object
Overrides:

Events

# changed

This event will fire when any value is changed.
Properties:
Name Type Description
args Object
key string The key of the value that has changed.
newValue * The new value.
oldValue * The old value.
Overrides:
Example
instance.addListener('changed', (args) => {...});