function openlayers_views_style_map::options_form in Openlayers 6.2
Same name and namespace in other branches
- 6 modules/openlayers_views/views/openlayers_views_style_map.inc \openlayers_views_style_map::options_form()
- 7.2 modules/openlayers_views/views/openlayers_views_style_map.inc \openlayers_views_style_map::options_form()
Options form
File
- modules/
openlayers_views/ views/ openlayers_views_style_map.inc, line 30 - This file holds style plugin for OpenLayers Views
Class
- openlayers_views_style_map
- @class Extension of the Views Plugin Syle for OpenLayers
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Map Preset
$form['preset'] = array(
'#type' => 'select',
'#title' => t('Map preset'),
'#description' => t('This is map that will be used to render the view.'),
'#options' => openlayers_preset_options(),
'#default_value' => $this->options['preset'] ? $this->options['preset'] : variable_get('openlayers_default_preset', 'default'),
);
}