Function printOpenStreetMap
Template function wrapper for the openStreetMap class to show a map with geodata markers for the current image or collected the images of an album.
For more flexibility use the class directly.
The map is not shown if there is no geodata available.
Package: plugins\openstreetmap
Author: Malte Müller (acrylian), Fred Sondaar (fretzl), gjr, Vincent Bourganel (vincent3569)
Located at zp-extensions/openstreetmap.php
Author: Malte Müller (acrylian), Fred Sondaar (fretzl), gjr, Vincent Bourganel (vincent3569)
Located at zp-extensions/openstreetmap.php
array |
$geodata = NULL |
Array of the geodata to create and display markers. See the constructor of the openStreetMap Class for the require structure |
string |
$width = NULL |
Width with unit, e.g. 100%, 100px, 100em |
string |
$height = NULL |
Height with unit, e.g. 100px, 100em |
array |
$mapcenter = NULL |
geodata array(lat,lng); |
integer |
$zoom = NULL |
Number of the zoom 0 - |
array |
$fitbounds = NULL |
geodata array('min' => array(lat,lng), 'max => array(lat,lng)) |
string |
$class = '' |
Class name to attach to the map element |
integer |
$mapnumber = NULL |
If calling more than one map per page an unique number is required |
obj |
$obj = NULL |
Image or album object to skip current image or album and also $geodata |
boolean |
$minimap = false |
True to show the minimap in the lower right corner |