summaryrefslogtreecommitdiff
path: root/static/edit_area.js
diff options
context:
space:
mode:
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 */