You are here

function openlayers_layer_type_wms::options_init in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 includes/layer_types/wms.inc \openlayers_layer_type_wms::options_init()

Provide initial values for options.

Overrides openlayers_layer_type::options_init

File

plugins/layer_types/openlayers_layer_type_wms.inc, line 15
WMS Layer Type

Class

openlayers_layer_type_wms
OpenLayers WMS Layer Type class

Code

function options_init() {
  $options = array(
    'layer_handler' => 'wms',
  ) + parent::options_init();

  // Discard hard-codes resolution because the client can calculate them usually
  unset($options['serverResolutions']);
  unset($options['maxExtent']);
  unset($options['resolutions']);
  return $options;
}