diff options
Diffstat (limited to 'chimere/static/edit_route_map.js')
-rw-r--r-- | chimere/static/edit_route_map.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chimere/static/edit_route_map.js b/chimere/static/edit_route_map.js index 69a24aa..486724d 100644 --- a/chimere/static/edit_route_map.js +++ b/chimere/static/edit_route_map.js @@ -97,7 +97,11 @@ 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); vectors.setOpacity(0.5); |