function openlayers_layer_type_gpx::options_init in Openlayers 7.2
Provide initial values for options.
Overrides openlayers_layer_type::options_init
File
- plugins/
layer_types/ openlayers_layer_type_gpx.inc, line 15 - GPX Layer Type
Class
- openlayers_layer_type_gpx
- OpenLayers GPX Layer Type class
Code
function options_init() {
return array(
'layer_handler' => 'gpx',
'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(
'extractWaypoints' => TRUE,
'extractRoutes' => TRUE,
'extractTracks' => TRUE,
'extractAttributes' => TRUE,
),
'file' => '',
) + parent::options_init();
}