You are here

function openlayers_layer_type_xyz::options_init in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 plugins/layer_types/openlayers_layer_type_xyz.inc \openlayers_layer_type_xyz::options_init()

Provide initial values for options.

Overrides openlayers_layer_type::options_init

1 call to openlayers_layer_type_xyz::options_init()
openlayers_layer_type_xyz::__construct in includes/layer_types/xyz.inc

File

includes/layer_types/xyz.inc, line 26
XYZ Layer Type http://dev.openlayers.org/docs/files/OpenLayers/Layer/XYZ-js.html

Class

openlayers_layer_type_xyz
OpenLayers XYZ Layer Type class

Code

function options_init() {
  return array(
    'serverResolutions' => openlayers_get_resolutions('900913'),
    'maxExtent' => openlayers_get_extent('900913'),
    'layer_handler' => 'xyz',
    'baselayer' => TRUE,
  );
}