function openlayers_layer_type_yahoo::options_form in Openlayers 6.2
Options form which generates layers
Overrides openlayers_layer_type::options_form
File
- includes/
layer_types/ yahoo.inc, line 35 - Yahoo Layer Type
Class
- openlayers_layer_type_yahoo
- OpenLayers Yahoo Layer Type class
Code
function options_form() {
$warning = !variable_get('openlayers_layers_yahoo_api', FALSE) ? array(
'#value' => t('WARNING: Your Yahoo API key is not set.
Map including Yahoo layers
will break until it is set correctly.'),
) : NULL;
$yahoo_layer_types = array(
'hybrid' => 'Hybrid',
'street' => 'Street',
'satellite' => 'Satellite',
);
return array(
'type' => array(
'#title' => t('Yahoo Layer Type'),
'#type' => 'select',
'#default_value' => isset($this->data['type']) ? $this->data['type'] : 'normal',
'#options' => $yahoo_layer_types,
),
'layer_type' => array(
'#type' => 'hidden',
'#value' => 'openlayers_layer_type_yahoo',
),
$warning,
);
}