function openlayers_layer_type_osm::options_init in Openlayers 6.2
Same name and namespace in other branches
- 7.2 plugins/layer_types/openlayers_layer_type_osm.inc \openlayers_layer_type_osm::options_init()
Provide initial values for options.
Overrides openlayers_layer_type::options_init
1 call to openlayers_layer_type_osm::options_init()
- openlayers_layer_type_osm::__construct in includes/
layer_types/ osm.inc
File
- includes/
layer_types/ osm.inc, line 25 - Yahoo Layer Type
Class
- openlayers_layer_type_osm
- OpenLayers OSM Layer Type class
Code
function options_init() {
return array(
'serverResolutions' => openlayers_get_resolutions('900913'),
'maxExtent' => openlayers_get_extent('900913'),
'projection' => array(
'900913',
),
'layer_handler' => 'xyz',
'layer_type' => 'osm',
'type' => 'png',
'baselayer' => TRUE,
);
}