function example_leaflet_widget_base_layers in Leaflet Widget for Geofield 7
Example implementation for hook_leaflet_widget_base_layers(). Allows developers to declare base layers to be used by the widget.
Return an array of base layer names keyed by the layer's URL template string.
File
- ./
leaflet_widget.api.php, line 9
Code
function example_leaflet_widget_base_layers() {
return array(
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' => 'OSM Mapnik',
);
}