]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Fixed dumb-arse bug with wrong variable name. Added tag cleanup and checking on nodes...
[rails.git] / public / javascripts / map.js
index c63461fe203be6c6559464f2c06f649e935ada0d..f79e3ae31632140946221eec0c08d8fea0d0e8f5 100644 (file)
@@ -14,7 +14,7 @@ var nonamekeys = {
 };
 
 OpenLayers._getScriptLocation = function () {
-  // Should really have this file as an erb, so that this can return 
+  // Should really have this file as an erb, so that this can return
   // the real rails root
    return "/openlayers/";
 }
@@ -111,6 +111,14 @@ function addMarkerToMap(position, icon, description) {
 function addObjectToMap(url, zoom, callback) {
    var layer = new OpenLayers.Layer.GML("Objects", url, {
       format: OpenLayers.Format.OSM,
+      style: {
+          strokeColor: "blue",
+          strokeWidth: 3,
+          strokeOpacity: 0.5,
+          fillOpacity: 0.2,
+          fillColor: "lightblue",
+          pointRadius: 6
+      },
       projection: new OpenLayers.Projection("EPSG:4326"),
       displayInLayerSwitcher: false
    });
@@ -138,7 +146,7 @@ function addObjectToMap(url, zoom, callback) {
          callback(extent);
       }
    });
-  
+
    map.addLayer(layer);
 
    layer.loadGML();
@@ -158,7 +166,7 @@ function addBoxToMap(boxbounds) {
       strokeColor: '#ee9900',
       fillOpacity: 0
    });
-   
+
    vectors.addFeatures(box);
 
    return box;