]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
The default OpenLayers.Layer.GML style can be nearly invisible when
[rails.git] / public / javascripts / map.js
index c63461fe203be6c6559464f2c06f649e935ada0d..7c979822711c0c2388386212ffbb4c8d2aa34978 100644 (file)
@@ -111,6 +111,11 @@ 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
+      },
       projection: new OpenLayers.Projection("EPSG:4326"),
       displayInLayerSwitcher: false
    });