X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b46b3c43279dc5e06cb6c476b00443fe2f5b503a..1288a89bdcb1299d8dded7b24c8afce0c4dac7b8:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 7c9798227..f79e3ae31 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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/"; } @@ -114,7 +114,10 @@ function addObjectToMap(url, zoom, callback) { style: { strokeColor: "blue", strokeWidth: 3, - strokeOpacity: 0.5 + strokeOpacity: 0.5, + fillOpacity: 0.2, + fillColor: "lightblue", + pointRadius: 6 }, projection: new OpenLayers.Projection("EPSG:4326"), displayInLayerSwitcher: false @@ -143,7 +146,7 @@ function addObjectToMap(url, zoom, callback) { callback(extent); } }); - + map.addLayer(layer); layer.loadGML(); @@ -163,7 +166,7 @@ function addBoxToMap(boxbounds) { strokeColor: '#ee9900', fillOpacity: 0 }); - + vectors.addFeatures(box); return box;