function openlayers_layer_type_kml::options_init in Openlayers 7.2
Same name and namespace in other branches
- 6.2 includes/layer_types/kml.inc \openlayers_layer_type_kml::options_init()
Provide initial values for options.
Overrides openlayers_layer_type::options_init
File
- plugins/
layer_types/ openlayers_layer_type_kml.inc, line 15 - KML Layer Type
Class
- openlayers_layer_type_kml
- OpenLayers KML Layer Type class
Code
function options_init() {
return array(
'layer_handler' => 'kml',
'projection' => array(
'EPSG:4326',
),
'resolutions' => openlayers_get_resolutions('EPSG:4326'),
'serverResolutions' => openlayers_get_resolutions('EPSG:4326'),
'maxExtent' => openlayers_get_extent('EPSG', '4326'),
'isBaseLayer' => FALSE,
'vector' => TRUE,
'formatOptions' => array(
'extractStyles' => TRUE,
'extractAttributes' => TRUE,
'extractTracks' => FALSE,
),
'file' => '',
'attribution' => '',
) + parent::options_init();
}