diff options
author | Struan Donald <struan@exo.org.uk> | 2020-01-14 10:41:14 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-02-17 14:10:08 +0000 |
commit | 019a2833453c931a91241004e7ff449ab4d82a35 (patch) | |
tree | 39c8eeab2f58dc01dea379605b50bae388d10057 /web/vendor/OpenLayers.Projection.OrdnanceSurvey.js | |
parent | 2e9b93e1dc9c2e42d99b514e79689971830f7866 (diff) |
add EPSG:3857 -> EPSG:27700 transforms
We already had these but labeled as EPSG:900913 which is the same as
3857. However, we tend to use 3857 as not all map servers recognise
900913.
Diffstat (limited to 'web/vendor/OpenLayers.Projection.OrdnanceSurvey.js')
-rw-r--r-- | web/vendor/OpenLayers.Projection.OrdnanceSurvey.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/vendor/OpenLayers.Projection.OrdnanceSurvey.js b/web/vendor/OpenLayers.Projection.OrdnanceSurvey.js index 339f57a93..aa9785d35 100644 --- a/web/vendor/OpenLayers.Projection.OrdnanceSurvey.js +++ b/web/vendor/OpenLayers.Projection.OrdnanceSurvey.js @@ -495,7 +495,11 @@ OpenLayers.Projection.addTransform("EPSG:27700", "EPSG:4326", OpenLayers.Projection.OS.projectInverseBritish); OpenLayers.Projection.addTransform("EPSG:900913", "EPSG:27700", OpenLayers.Projection.OS.goog2osgb); +OpenLayers.Projection.addTransform("EPSG:3857", "EPSG:27700", + OpenLayers.Projection.OS.goog2osgb); OpenLayers.Projection.addTransform("EPSG:27700", "EPSG:900913", OpenLayers.Projection.OS.osgb2goog); +OpenLayers.Projection.addTransform("EPSG:27700", "EPSG:3857", + OpenLayers.Projection.OS.osgb2goog); } |