You are here

function openlayers_layer_type::options_init in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 openlayers.module \openlayers_layer_type::options_init()

Provides the default options for the layer.

Return value

An associative array with the default options.

17 calls to openlayers_layer_type::options_init()
openlayers_layer_type::__construct in ./openlayers.module
Set configuration and store map.
openlayers_layer_type_bing::options_init in plugins/layer_types/openlayers_layer_type_bing.inc
Provide initial values for options.
openlayers_layer_type_cloudmade::options_init in plugins/layer_types/openlayers_layer_type_cloudmade.inc
Provide initial values for options.
openlayers_layer_type_dummy::options_init in plugins/layer_types/openlayers_layer_type_dummy.inc
Provide initial values for options.
openlayers_layer_type_geojson::options_init in plugins/layer_types/openlayers_layer_type_geojson.inc
Provide initial values for options.

... See full list

18 methods override openlayers_layer_type::options_init()
openlayers_layer_type_bing::options_init in plugins/layer_types/openlayers_layer_type_bing.inc
Provide initial values for options.
openlayers_layer_type_cloudmade::options_init in plugins/layer_types/openlayers_layer_type_cloudmade.inc
Provide initial values for options.
openlayers_layer_type_dummy::options_init in plugins/layer_types/openlayers_layer_type_dummy.inc
Provide initial values for options.
openlayers_layer_type_geojson::options_init in plugins/layer_types/openlayers_layer_type_geojson.inc
Provide initial values for options.
openlayers_layer_type_google::options_init in plugins/layer_types/openlayers_layer_type_google.inc
Provide initial values for options.

... See full list

File

./openlayers.module, line 1312
Main OpenLayers API File

Class

openlayers_layer_type
We define base classes in the core module. All other parent classes can be autoloaded through ctools.

Code

function options_init() {
  return array(
    'layer_type' => get_class($this),
    'isBaseLayer' => TRUE,
    // TODO: Remove hard-coded resolutions
    'projection' => array(
      'EPSG:900913',
    ),
    'serverResolutions' => openlayers_get_resolutions('EPSG:900913'),
    'resolutions' => openlayers_get_resolutions('EPSG:900913'),
    'base_url' => NULL,
    'transitionEffect' => 'resize',
    'weight' => 0,
  );
}