Template:Toggle dive maps/doc

This template is used to display dual maps at the same place in on a page. A static map of dive regions or sites and a toggling interactive map showing points of interest Use of this template is as follows:

The regionInteractiveMap parameter will activate a dynamic map behind the static map, and provide a link to switch between the maps. If there are mapshapes to display in the dynamic map, they will need to have the "group=map1" parameter added.

Example:

Some things to note:
 * The static and dynamic maps will have identical dimensions so the layout of the article is not affected.
 * The center and the zoom of the map will be autoset according to the POI shown in the map.
 * To set a dynamic map for a second static map on the same page, it's necessary to specify a different value in the regionInteractiveMap parameter (e.g. map2) and match it to group parameter in the.

Optional parameters
To center the map at a different point or to apply a different zoom level, use the following optional parameters.

Full template: