From 11966d231ffac3753534e231341c706b0daf1daa Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 15 Feb 2012 11:09:55 +0100 Subject: [PATCH] New OpenLayers.Projection.defaults property. This allows us to simplify the map and layer configuration, because now the projection also defines defaults for maxExtent, maxResolution and units. This change also adds transforms for SRS aliases for EPSG:4326 and centralizes axis order information in OpenLayers.Projection.defaults. --- examples/spherical-mercator.html | 10 ++-- lib/OpenLayers/Layer.js | 25 ++++++--- lib/OpenLayers/Layer/Google/v3.js | 16 ------ lib/OpenLayers/Layer/WMS.js | 11 ++-- lib/OpenLayers/Map.js | 30 +++++----- lib/OpenLayers/Projection.js | 82 ++++++++++++++++++++++------ tests/Control/WMSGetFeatureInfo.html | 15 ++--- tests/Layer.html | 4 +- tests/Layer/TMS.html | 4 +- tests/Layer/XYZ.html | 4 +- tests/Protocol/WFS.html | 4 +- 11 files changed, 127 insertions(+), 78 deletions(-) diff --git a/examples/spherical-mercator.html b/examples/spherical-mercator.html index bb95cbb87d..ea6c2246d5 100644 --- a/examples/spherical-mercator.html +++ b/examples/spherical-mercator.html @@ -12,7 +12,10 @@