5 * API documentation for Administration menu.
9 * Define one or map definitions to be used when rendering a map.
10 * leaflet_map_get_info() will grab every defined map, and the returned
11 * associative array is then passed to leaflet_render_map(), along with a
12 * collection of features.
14 * The settings array maps to the settings available
15 * to leaflet map object, http://leaflet.cloudmade.com/reference.html#map-properties
17 * Layers are the available base layers for the map and, if you enable the
18 * layer control, can be toggled on the map.
22 function hook_leaflet_map_info() {
26 'label' => 'OSM Mapnik',
27 'description' => t('Leaflet default map.'),
31 'scrollWheelZoom' => TRUE
,
32 'doubleClickZoom' => TRUE
,
33 'zoomControl' => TRUE
,
34 'attributionControl' => TRUE
,
35 'trackResize' => TRUE
,
36 'fadeAnimation' => TRUE
,
37 'zoomAnimation' => TRUE
,
38 'closePopupOnClick' => TRUE
,
39 'layerControl' => TRUE
,
42 // 'zoom' => 15, // set the map zoom fixed to 15
46 'urlTemplate' => 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
48 'attribution' => 'OSM Mapnik'
52 // Uncomment the lines below to use a custom icon
54 // 'iconUrl' => '/sites/default/files/icon.png',
55 // 'iconSize' => array('x' => '20', 'y' => '40'),
56 // 'iconAnchor' => array('x' => '20', 'y' => '40'),
57 // 'popupAnchor' => array('x' => '-8', 'y' => '-32'),
58 // 'shadowUrl' => '/sites/default/files/icon-shadow.png',
59 // 'shadowSize' => array('x' => '25', 'y' => '27'),
60 // 'shadowAnchor' => array('x' => '0', 'y' => '27'),