How to's

How to use the mapping kit?

Maps can be added to content by setting the input format to 'Inline maps' and entering a map definition using square brackets and an appropriate set of parameters.

[map param="value" /]

Most parameters are optional. One way or another, they should provide sufficient information on map extent and projection.

Parameter Description
id Optional id of map block. It may need to specified explicitly for a map layer tree or when using it in custom blocks for javascript functionality: var map = MappingKit.getMap(id);
baselayers Comma-separated list of external base layers, such as google, ve, yahoo, or none. Baselayers are available in 2 projections: lat/lon (EPSG:4326) or spherical mercator (EPSG:900913). When overlaying baselayers with your own wms layers, spherical mercator must be used.
config Path to a config document to be used by the Flash (Flamingo) map client.
context Path to map context used; can be a full path, or local as node/24/context.
layers Comma-separated list with id's for layers; with layers="1,2" layers definitions 1 and 2 are expected
layer_id Specification of an overlay layer of type wms, wfs, georss, gpx, image or kml. WMS layers are defined as wms|service_url|title|layers|extra, WFS layers as wfs|service_url|title|typename|extra, etc.
extent Initial extent of map.
maxextent Maximum extent of map.
center Initial center coordinates.
zoom Initial zoom level.
width Width of map (in pixels).
height Height of map (in pixels).
title Map title. This title is used in pdf output.

The 'Map assist' button below a content body can be used to assist in building a map definition.