You are here

function openlayers_get_all_projections in Openlayers 7.2

Return value

array<openlayers_projection>

2 calls to openlayers_get_all_projections()
openlayers_layer_type::options_form in ./openlayers.module
Options form to configure layer instance options.
openlayers_views_style_data::options_form in modules/openlayers_views/views/openlayers_views_style_data.inc
Options form

File

./openlayers.module, line 1080
Main OpenLayers API File

Code

function openlayers_get_all_projections($reset = FALSE, $include_disabled = FALSE) {
  ctools_include('export');
  $projections = array();
  foreach (ctools_export_crud_load_all('openlayers_projections', $reset) as $record) {
    if (!$include_disabled && isset($record->disabled) && $record->disabled) {
      continue;
    }
    $projections[] = openlayers_projection_from_record($record);
  }
  return $projections;
}