Class

GoogleMapsView

mapsindoors.mapView.GoogleMapsView(args)

Constructor

# new GoogleMapsView(args)

GoogleMapsView is the MapsIndoors MapView for Google Maps.
Parameters:
Name Type Attributes Default Description
args Object A complete list of Google Maps parameters can be found here.
element HTMLElement The HTML element in which the map will be rendered.
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.
Example
const mapView = new mapsindoors.mapView.GoogleMapsView(...);
const mapsIndoors = new mapsindoors.MapsIndoors({mapView: mapView})

Extends

Methods

# get(key) → {*}

Parameters:
Name Type Description
key string
Overrides:
*

# getValues() → {Object}

Returns all values as key value pairs.
Overrides:
Object

# 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) => {...});