You are here

function openlayers_layer_type_geojson::options_init in Openlayers 7.2

Provide initial values for options.

Overrides openlayers_layer_type::options_init

File

plugins/layer_types/openlayers_layer_type_geojson.inc, line 15
GeoJSON Layer Type

Class

openlayers_layer_type_geojson
OpenLayers GeoJSON Layer Type class

Code

function options_init() {
  return array(
    'layer_type' => 'openlayers_layer_type_geojson',
    'layer_handler' => 'geojson',
    'projection' => array(
      'EPSG:4326',
    ),
    'serverResolutions' => openlayers_get_resolutions('EPSG:4326'),
    'isBaseLayer' => FALSE,
    'vector' => TRUE,
    'geojson_data' => '',
    'useBBOX' => FALSE,
  ) + parent::options_init();
}