diff options
-rw-r--r-- | chimere/static/edit_map.js | 5 |
1 files changed, 4 insertions, 1 deletions
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]); |