You are here

function hook_leaflet_widget_base_layers in Leaflet Widget for Geofield 7.2

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.

1 function implements hook_leaflet_widget_base_layers()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

leaflet_widget_leaflet_widget_base_layers in ./leaflet_widget.module
Implements hook_leaflet_widget_base_layers().
1 invocation of hook_leaflet_widget_base_layers()
leaflet_widget_base_layers in ./leaflet_widget.module
Returns the available leaflet base layers.

File

./leaflet_widget.api.php, line 12
API documentation of leaflet widget module for Geofield.

Code

function hook_leaflet_widget_base_layers() {
  return array(
    'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' => 'OSM Mapnik',
  );
}