function openlayers_behavior_panzoombar::options_form in Openlayers 7.2
Same name and namespace in other branches
- 6.2 includes/behaviors/openlayers_behavior_panzoombar.inc \openlayers_behavior_panzoombar::options_form()
Overrides openlayers_behavior::options_form
File
- plugins/
behaviors/ openlayers_behavior_panzoombar.inc, line 25 - Implementation of OpenLayers behavior.
Class
- openlayers_behavior_panzoombar
- Pan Zoom Bar Behavior
Code
function options_form($defaults = array()) {
return array(
'zoomWorldIcon' => array(
'#type' => 'checkbox',
'#title' => t('World Icon'),
'#description' => t('This puts the world icon in the pan controls. This button will zoom to the max extent when it is pressed.'),
'#default_value' => isset($defaults['zoomWorldIcon']) ? $defaults['zoomWorldIcon'] : FALSE,
),
'panIcons' => array(
'#type' => 'checkbox',
'#title' => t('Pan Icons'),
'#description' => t('Enable the pan controls. Without it, then the user will only see a zoom bar.'),
'#default_value' => isset($defaults['panIcons']) ? $defaults['panIcons'] : TRUE,
),
);
}