From 388760e38a12e0dbf47bdab0da56e1180d08b0b2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Nov 2010 12:38:15 +0100 Subject: Correct bug on restricted extents for edit pages --- chimere/static/edit_map.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chimere/static/edit_map.js b/chimere/static/edit_map.js index 88237a4..5000b75 100644 --- a/chimere/static/edit_map.js +++ b/chimere/static/edit_map.js @@ -69,7 +69,10 @@ function init(){ projection: epsg_projection, displayProjection: epsg_display_projection }; - if (restricted_extent){options['restrictedExtent'] = restricted_extent;} + if (restricted_extent){ + restricted_extent.transform(epsg_display_projection, epsg_projection); + options['restrictedExtent'] = restricted_extent; + } map = new OpenLayers.Map ('map_edit', options); layerMarkers.setOpacity(0.5); map.addLayers([map_layer, layerMarkers]); -- cgit v1.2.3