You are here

function openlayers_get_projection in Openlayers 7.2

Parameters

String $authority Organization who defined the code:

String $code Projection identifier:

Return value

openlayers_projection

1 call to openlayers_get_projection()
openlayers_ui_maps_form_center_map in modules/openlayers_ui/includes/openlayers_ui.maps.inc
Create Centering Map

File

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

Code

function openlayers_get_projection($authority, $code) {
  static $projections;
  if (!isset($projections)) {
    $projections = array();
  }
  $identifier = $authority . ':' . $code;
  if (!array_key_exists($identifier, $projections)) {
    $projections[$identifier] = openlayers_get_projection_by_identifier($identifier);
  }
  return $projections[$identifier];
}