diff options
Diffstat (limited to 'web/js/OpenLayers.Projection.OrdnanceSurvey.js')
-rw-r--r-- | web/js/OpenLayers.Projection.OrdnanceSurvey.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/OpenLayers.Projection.OrdnanceSurvey.js b/web/js/OpenLayers.Projection.OrdnanceSurvey.js index bb596d3bf..85574d8e0 100644 --- a/web/js/OpenLayers.Projection.OrdnanceSurvey.js +++ b/web/js/OpenLayers.Projection.OrdnanceSurvey.js @@ -39,6 +39,8 @@ * */ +if (typeof OpenLayers !== "undefined") { + OpenLayers.Projection.OS = { /** @@ -487,3 +489,5 @@ OpenLayers.Projection.addTransform("EPSG:900913", "EPSG:27700", OpenLayers.Projection.OS.goog2osgb); OpenLayers.Projection.addTransform("EPSG:27700", "EPSG:900913", OpenLayers.Projection.OS.osgb2goog); + +} |