You are here

leaflet_widget.api.php in Leaflet Widget for Geofield 7

Same filename and directory in other branches
  1. 7.2 leaflet_widget.api.php

File

leaflet_widget.api.php
View 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

Namesort descending 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.