Map settings
Last updated on
30 April 2025
The map settings are stored in the #settings key of the map element. The entire settings array is passed to the javascript side and is available as this.vars inside of a handler.
- width
CSS width for the map. Use % or px. - height
CSS height for the map. Use % or px. - zoom
Map zoom level. Canonicalized to integer. - controltype
Type of control to put in the top left of the map.
Possible values: Small, Large, None - align
Alignment of the map.
Possible values: Left, Right, Center - latlong
Backwards compatiblity for latlon. - latlon
Latitude and longitude combined. Will be converted to latitude / longitude if nonexistent. - latitude
Canonical form of latitude. - longitude
Canonical form of longitude - maptype
Which type to draw.
Possible values:
Map: G_NORMAL_MAP
Hybrid: G_HYBRID_MAP
Satellite: G_SATELLITE_MAP - line_colors
Colors to draw lines.
Deprecated -- Will be removed shortly - behavior
Array of behavior flags.
(todo: search for other things honored by GMap core and document them)
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion