function openlayers_layer_type_google::options_form in Openlayers 6.2
Same name and namespace in other branches
- 7.2 plugins/layer_types/openlayers_layer_type_google.inc \openlayers_layer_type_google::options_form()
Options form which generates layers
Overrides openlayers_layer_type::options_form
File
- includes/
layer_types/ google.inc, line 38 - Google Layer Type
Class
- openlayers_layer_type_google
- OpenLayers Google Layer Type class
Code
function options_form() {
$google_layer_types = array(
'hybrid' => 'Hybrid',
'normal' => 'Normal',
'satellite' => 'Satellite',
'mapmaker-normal' => 'MapMaker Normal',
'mapmaker-hybrid' => 'MapMaker Hybrid',
);
return array(
'type' => array(
'#title' => t('Google Layer Type'),
'#type' => 'select',
'#default_value' => isset($this->data['type']) ? $this->data['type'] : 'normal',
'#options' => $google_layer_types,
),
'layer_type' => array(
'#type' => 'hidden',
'#value' => 'openlayers_layer_type_google',
),
'numZoomLevels' => array(
'#type' => 'textfield',
'#title' => t('Number of Zoom Levels'),
'#description' => t('Satellite and hybrid maps are occasionally
unavailable at higher zoom levels.'),
'#default_value' => isset($this->data['numZoomLevels']) ? $this->data['numZoomLevels'] : '15',
),
);
}