You are here

function geofield_openlayers_layers in Geofield 7

Same name and namespace in other branches
  1. 7.2 geofield.openlayers.inc \geofield_openlayers_layers()

Formatter layers

File

./geofield.openlayers.inc, line 187
Provides hooks for integration with OpenLayers (http://drupal.org/project/openlayers)

Code

function geofield_openlayers_layers() {
  $layers = array();
  $layer = new stdClass();
  $layer->api_version = 1;
  $layer->name = 'geofield_formatter';
  $layer->title = 'Placeholder for Geofield Formatter';
  $layer->description = '';
  $layer->data = array(
    'layer_type' => 'openlayers_layer_type_raw',
    'projection' => array(
      'EPSG:900913',
    ),
    'features' => array(),
  );
  $layers[$layer->name] = $layer;
  return $layers;
}