Class: Config

.xyz.maps.Map. Config

Configuration of map display.

Members Summary

bahavior :object

Behavior options of the map.
Allow user to "drag" / "rotate" / "pitch" or "zoom" the map by mouse/touch interaction.

"drag" / "rotate" and "pitch" are booleans indicating if user interaction is possible or not.
Possible values for "zoom" property are
- false: disable zoom
- true: enable zoom ("float")
- "fixed": fixed zoom animation to next integer zoomlevel. floating zoomlevels are not allowed (eg 14.4)
- "float": allow floating zoomlevels [default]

center :here.xyz.maps.geo.Point

Center coordinate of the map.

debug :Boolean

set the log level

layers :Array.<here.xyz.maps.layers.TileLayer>

add layers to display.

maxLevel :number

maximum zoomlevel of displaying the map overlay

minLevel :number

minimum zoomlevel of displaying the map overlay

minPanMapThreshold :Boolean

minimum threshold in pixel for enabling pan map gesture

pitch :number

initial pitch (tilt) of the map in degree.

rotate :number

initial rotation of the map in degree.

zoomlevel :number

zoomlevel of the map.

Members Details

bahavior :object [Optional]

Behavior options of the map.
Allow user to "drag" / "rotate" / "pitch" or "zoom" the map by mouse/touch interaction.

"drag" / "rotate" and "pitch" are booleans indicating if user interaction is possible or not.
Possible values for "zoom" property are
- false: disable zoom
- true: enable zoom ("float")
- "fixed": fixed zoom animation to next integer zoomlevel. floating zoomlevels are not allowed (eg 14.4)
- "float": allow floating zoomlevels [default]
Type:
object

center :here.xyz.maps.geo.Point [Optional]

Center coordinate of the map.
Type:
here.xyz.maps.geo.Point
Default Value:
  • {longitude: 8.534, latitude: 50.162}

debug :Boolean [Optional]

set the log level
Type:
Boolean
Default Value:
  • false

layers :Array.<here.xyz.maps.layers.TileLayer>

add layers to display.
Type:
Array.<here.xyz.maps.layers.TileLayer>

maxLevel :number [Optional]

maximum zoomlevel of displaying the map overlay
Type:
number
Default Value:
  • 20

minLevel :number [Optional]

minimum zoomlevel of displaying the map overlay
Type:
number
Default Value:
  • 2

minPanMapThreshold :Boolean [Optional]

minimum threshold in pixel for enabling pan map gesture
Type:
Boolean
Default Value:
  • 4

pitch :number [Optional]

initial pitch (tilt) of the map in degree.
Type:
number
Default Value:
  • 0

rotate :number [Optional]

initial rotation of the map in degree.
Type:
number
Default Value:
  • 0

zoomlevel :number [Optional]

zoomlevel of the map.
Type:
number
Default Value:
  • 18