You are here

function openlayers_layer_type_kml::options_init in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 plugins/layer_types/openlayers_layer_type_kml.inc \openlayers_layer_type_kml::options_init()

Provide initial values for options.

Overrides openlayers_layer_type::options_init

1 call to openlayers_layer_type_kml::options_init()
openlayers_layer_type_kml::__construct in includes/layer_types/kml.inc

File

includes/layer_types/kml.inc, line 25
KML Layer Type

Class

openlayers_layer_type_kml
OpenLayers KML Layer Type class

Code

function options_init() {
  return array(
    'layer_type' => 'kml',
    'layer_handler' => 'kml',
    'projection' => array(
      '4326',
    ),
    'baselayer' => FALSE,
    'vector' => TRUE,
    'formatOptions' => array(
      'extractStyles' => TRUE,
      'extractAttributes' => TRUE,
    ),
  );
}