User:WillEngle/test

From UBC Wiki

Parameters

Maps an be customized using the below various parameters.

Customization syntax

{{#display_map: height=200px | Vancouver | centre=UBC | scrollzoom=off }}
Loading map...
Parameter Default ⧼validator-describe-header-description⧽
zoom no 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 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 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 no The location on which the map should be centered
title 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 Allows setting text that will be displayed in the pop-ups of all markers that do not have a specific label.
icon Allows setting the icon used for all markers.
lines Lines to display
polygons Polygons to display
circles Circles to display
rectangles Rectangles to display
maxzoom no The maximum zoom level
minzoom no The minimum zoom level
copycoords no Show a dialog when clicking on a marker from which its coordinates may be copied
static no Make the map static
defzoom 14 Allows setting the default zoom level of the map.
layers OpenStreetMap The layers that will be available in the layer selector. The first layer will be shown when the map loads.
image layers Image base layers. The first layer will be shown by default. If any images are specified, they will be used instead of the regular map layers.
overlays The overlay layers that will be shown when the map loads.
resizable no Makes the map resizable by dragging at its lower right corner.
fullscreen no Enable fullscreen button
scrollwheelzoom yes Indicates if mouse scrolling should be enabled or not.
cluster no Allows merging of multiple nearby markers into one marker
clustermaxzoom 20 The maximum zoom level where clusters may exist.
clusterzoomonclick yes Whether the default behaviour of clicking on a cluster is to zoom into it.
clustermaxradius 80 The maximum radius that a cluster will cover.
clusterspiderfy yes When you click a cluster at the bottom zoom level we spiderfy it so you can see all of its markers.
geojson URL of a file or name of the page containing GeoJSON data
clicktarget When clicking on the map you will be sent to this URL. %lat% is replaced by the latitude and %long% by the longitude