You are here

function leaflet_field_formatter_info in Leaflet 7

Implements hook_field_formatter_info().

File

./leaflet.formatters.inc, line 11
Leaflet field formatter functions.

Code

function leaflet_field_formatter_info() {
  $formatters = array();
  if (module_exists('geofield')) {
    $formatters['geofield_leaflet'] = array(
      'label' => t('Leaflet'),
      'field types' => array(
        'geofield',
      ),
      'settings' => array(
        'leaflet_map' => '',
        'height' => 400,
        'popup' => array(
          'show' => '',
          'text' => '',
        ),
        'zoom' => array(
          'initialZoom' => '',
          'minZoom' => 1,
          'maxZoom' => 19,
        ),
        'icon' => array(
          'iconUrl' => '',
          'shadowUrl' => '',
          'iconSize' => array(
            'x' => '',
            'y' => '',
          ),
          'iconAnchor' => array(
            'x' => '',
            'y' => '',
          ),
          'shadowAnchor' => array(
            'x' => '',
            'y' => '',
          ),
          'popupAnchor' => array(
            'x' => '',
            'y' => '',
          ),
          'html' => '',
          'htmlClass' => '',
        ),
        'vector_display' => array(
          'stroke_override' => 0,
          'stroke' => 1,
          'color' => '',
          'weight' => '',
          'opacity' => '',
          'dashArray' => '',
          'fill' => 1,
          'fillColor' => '',
          'fillOpacity' => '',
          'clickable' => 1,
        ),
      ),
    );
  }
  return $formatters;
}