leaflet_widget.api.php in Leaflet Widget for Geofield 7
Same filename and directory in other branches
File
leaflet_widget.api.phpView source
<?php
/**
* 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.
*/
function example_leaflet_widget_base_layers() {
return array(
'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' => 'OSM Mapnik',
);
}
Functions
Name | Description |
---|---|
example_leaflet_widget_base_layers | Example implementation for hook_leaflet_widget_base_layers(). Allows developers to declare base layers to be used by the widget. |