Parameter | Type | Default | Description |
---|---|---|---|
zoom | whole number | 14 | The zoom level for the map. For maps with markers this will default to the most zoomed in level that still shows all markers. |
width | number and dimensional unit | auto | Allows setting the width of the map. By default pixels will be assumed as unit, but you can explicitly specify one of these units: px, ex, em, %. |
height | number and dimensional unit | 350 | Allows setting the height of the map. By default pixels will be assumed as unit, but you can explicitly specify one of these units: px, ex, em. |
centre | text | no | The location on which the map should be centered |
title | text | empty | Allows setting text that will be displayed in the pop-ups of all markers that do not have a specific title.
When used together with label, the title will be bold and underlined. |
label | text | empty | Allows setting text that will be displayed in the pop-ups of all markers that do not have a specific label. |
icon | text | empty | Allows setting the icon used for all markers. |
lines | List of lines | empty | Lines to display |
polygons | List of geographical polygons | empty | Polygons to display |
circles | List of circles | empty | Circles to display |
rectangles | List of rectangles | empty | Rectangles to display |
maxzoom | whole number | no | The maximum zoom level |
minzoom | whole number | no | The minimum zoom level |
copycoords | yes/no | no | Show a dialog when clicking on a location from which its coordinates may be copied |
static | yes/no | no | Make the map static |
visitedicon | text | empty | The filename of an image to be used for marker icons after the original markers have been clicked |
wmsoverlay | Web Map Service overlay | no | Use a WMS overlay |
type | text | roadmap | The map type to initially show. |
types | list of texts | roadmap, satellite, hybrid, terrain | The map types that will be available via the type control. |
layers | list of texts | empty | Special layers to load onto the map. |
controls | list of texts | pan, zoom, type, scale, streetview, rotate | The controls to place on the map. |
zoomstyle | text | default | The style of the zoom control. |
typestyle | text | default | The style of the type control. |
autoinfowindows | yes/no | no | Automatically open all info windows after the page has loaded. |
resizable | yes/no | no | Makes the map resizable by dragging at its lower right corner. |
kmlrezoom | yes/no | no | Rezoom the map after the KML layers have been loaded. |
poi | yes/no | yes | Show points of interest. |
cluster | yes/no | no | Allows merging of multiple nearby markers into one marker |
clustergridsize | whole number | 60 | The grid size of a cluster in pixels. |
clustermaxzoom | whole number | 20 | The maximum zoom level where clusters may exist. |
clusterzoomonclick | yes/no | yes | Whether the default behaviour of clicking on a cluster is to zoom into it. |
clusteraveragecenter | yes/no | yes | Whether the center of each cluster should be the average of all markers in the cluster. |
clusterminsize | whole number | 2 | The minimum number of markers to be in a cluster before the markers are hidden and a count is shown. |
imageoverlays | List of image overlays | empty | Allows adding an image to be shown on the specified location on the map. |
kml | list of texts | empty | KML files to load onto the map. |
gkml | list of texts | empty | KML files hosted by Google to load onto the map. |
searchmarkers | text | empty | Allows to search for specific markers via a field embedded into the map. |
fullscreen | yes/no | no | Enable fullscreen button |
scrollwheelzoom | yes/no | no | Indicates if mouse scrolling should be enabled or not. |