summaryrefslogtreecommitdiff
path: root/static/main_map.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/main_map.js')
-rw-r--r--static/main_map.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/main_map.js b/static/main_map.js
index 93f64ad..4a9e684 100644
--- a/static/main_map.js
+++ b/static/main_map.js
@@ -29,6 +29,8 @@ function hide(id){
document.getElementById(id).style.display = 'None';
}
+var map;
+
/* availaible map layers */
var layerMapnik = new OpenLayers.Layer.OSM.Mapnik('Classic');
var cyclemap = new OpenLayers.Layer.OSM.CycleMap("Cycle map", {
@@ -185,7 +187,7 @@ function setDetail(response){
/* main initialisation function */
function init(){
/* set the main map */
- map = new OpenLayers.Map ('map', {
+ map = new OpenLayers.Map('map', {
controls:[new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.ScaleLine()],