You are here

function openlayers_layer_type_openlayers_views_vector::options_init in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 modules/openlayers_views/includes/layer_types/openlayers_views_vector.inc \openlayers_layer_type_openlayers_views_vector::options_init()

Provide initial values for options.

Overrides openlayers_layer_type::options_init

File

modules/openlayers_views/plugins/layer_types/openlayers_views_vector.inc, line 27
OpenLayers Views Vector Layer Type

Class

openlayers_layer_type_openlayers_views_vector

Code

function options_init() {
  return array(
    'layer_handler' => 'openlayers_views_vector',
    'layer_type' => 'openlayers_views_vector',
    'projection' => array(
      'EPSG:4326',
    ),
    'isBaseLayer' => FALSE,
    'vector' => TRUE,
    'type' => 'Vector',
    'url' => array(),
    'options' => array(
      'rendererOptions' => array(
        'yOrdering' => TRUE,
      ),
    ),
    'events' => array(),
    'views' => array(),
  );
}