summaryrefslogtreecommitdiff
path: root/static/edit_area.js
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-25 17:50:02 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2009-01-25 17:50:02 +0000
commit751846ea0ade97184b5417bcfd64efc6f97a128f (patch)
tree23c8769abf0de0974b40f82ea9251f36058882c9 /static/edit_area.js
parentccea45fa5494a2a89b99e0a222c16ee897884b09 (diff)
downloadChimère-751846ea0ade97184b5417bcfd64efc6f97a128f.tar.bz2
Chimère-751846ea0ade97184b5417bcfd64efc6f97a128f.zip
Configuration of the map in the configuration file
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@27 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'static/edit_area.js')
-rw-r--r--static/edit_area.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/static/edit_area.js b/static/edit_area.js
index 3105a03..325deaf 100644
--- a/static/edit_area.js
+++ b/static/edit_area.js
@@ -20,9 +20,6 @@ See the file COPYING for details.
var map;
-/* availaible map layers */
-var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Mapnik');
-
/* update form fields on zoom action */
function updateForm(){
var bounds = map.getExtent();
@@ -43,7 +40,7 @@ function init(){
projection: epsg_projection,
displayProjection: epsg_display_projection
} );
- map.addLayers([layerMapnik]);
+ map.addLayers([map_layer]);
map.events.register('zoomend', map, updateForm);
map.events.register('moveend', map, updateForm);
/* zoom to the appropriate extent */