You are here

function openlayers_layer_type_tms::options_init in Openlayers 6.2

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

Provide initial values for options.

Overrides openlayers_layer_type::options_init

1 call to openlayers_layer_type_tms::options_init()
openlayers_layer_type_tms::__construct in includes/layer_types/tms.inc

File

includes/layer_types/tms.inc, line 26
TMS Layer Type

Class

openlayers_layer_type_tms
OpenLayers TMS Layer Type class

Code

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