function openlayers_layer_type_xyz::options_init in Openlayers 7.2
Same name and namespace in other branches
- 6.2 includes/layer_types/xyz.inc \openlayers_layer_type_xyz::options_init()
Provide initial values for options.
Overrides openlayers_layer_type::options_init
File
- plugins/
layer_types/ openlayers_layer_type_xyz.inc, line 16 - 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(
'layer_handler' => 'xyz',
'sphericalMercator' => TRUE,
'wrapDateLine' => FALSE,
'zoomOffset' => 0,
'resolutions' => array_slice(openlayers_get_resolutions('EPSG:900913'), 0, 18),
) + parent::options_init();
}