You are here

function openlayers_behavior_geolocate::options_init in Openlayers 7.2

Provide initial values for options.

Overrides openlayers_behavior::options_init

1 call to openlayers_behavior_geolocate::options_init()
openlayers_behavior_geolocate::options_form in plugins/behaviors/openlayers_behavior_geolocate.inc

File

plugins/behaviors/openlayers_behavior_geolocate.inc, line 15
Implementation of OpenLayers behavior.

Class

openlayers_behavior_geolocate
Geolocate Behavior http://dev.openlayers.org/docs/files/OpenLayers/Control/Geolocate-js.html

Code

function options_init() {
  return array(
    'bind' => TRUE,
    'watch' => FALSE,
    'geolocationOptions' => array(
      'enableHighAccuracy' => FALSE,
      'maximumAge' => 0,
      'timeout' => 7000,
    ),
    'zoom_level' => 12,
  );
}