Class: MapSettings

MapSettings

WPGMZA.MapSettings

new MapSettings()

Handles map settings, parsing them from the data-settings attribute on the maps HTML element. NB: This will be split into GoogleMapSettings and OLMapSettings in the future.

Methods


toGoogleMapsOptions()

Returns settings on this object converted to Google's MapOptions spec.
Returns:
The map settings, in the format specified by google.maps.MapOptions
Type
object

toOLViewOptions()

Returns settings on this object converted to OpenLayers view options
Returns:
The map settings, in a format understood by OpenLayers
Type
object