function openlayers_ui_get_projection_options in Openlayers 6.2
Same name and namespace in other branches
- 7.2 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_get_projection_options()
Get projection options.
Return value
Array of projection options suitable for use in a FormAPI element.
2 calls to openlayers_ui_get_projection_options()
- openlayers_ui_presets_form in modules/
openlayers_ui/ includes/ openlayers_ui.presets.inc - Menu Callback for Add Preset
- openlayers_ui_presets_form_center_map in modules/
openlayers_ui/ includes/ openlayers_ui.presets.inc - Create Centering Map
File
- modules/
openlayers_ui/ openlayers_ui.module, line 617
Code
function openlayers_ui_get_projection_options() {
$options = array();
foreach (openlayers_layers_load() as $key => $layer) {
if ($layer->data['projection']) {
foreach ($layer->data['projection'] as $projection) {
$options[$projection] = $projection;
}
}
}
return $options;
}