diff options
-rw-r--r-- | chimere/static/edit_route_map.js | 6 | ||||
-rw-r--r-- | chimere/static/main_map.js | 2 |
2 files changed, 6 insertions, 2 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); diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js index 470f055..808b9cd 100644 --- a/chimere/static/main_map.js +++ b/chimere/static/main_map.js @@ -371,7 +371,7 @@ function putMarker(layer, mark) { clicked = true; updateDetail(feature.pk); map.setCenter(feature.lonlat, 17); - loadCategories(); + updateCategories(); p_current_feature = null; } return feature; |