X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6baccfaddd190d730b626204e9cf81c2504995bf..5a76cbe760c31e3992f185df7efb803bb9b82c4b:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 9773ab348..4af30f2a1 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/"; } @@ -28,8 +28,7 @@ function createMap(divName, options) { new OpenLayers.Control.Attribution(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanZoomBar(), - new OpenLayers.Control.ScaleLine() + new OpenLayers.Control.PanZoomBar() ], units: "m", maxResolution: 156543.0339, @@ -116,7 +115,8 @@ function addObjectToMap(url, zoom, callback) { strokeWidth: 3, strokeOpacity: 0.5, fillOpacity: 0.2, - fillColor: "lightblue" + fillColor: "lightblue", + pointRadius: 6 }, projection: new OpenLayers.Projection("EPSG:4326"), displayInLayerSwitcher: false @@ -145,7 +145,7 @@ function addObjectToMap(url, zoom, callback) { callback(extent); } }); - + map.addLayer(layer); layer.loadGML(); @@ -165,7 +165,7 @@ function addBoxToMap(boxbounds) { strokeColor: '#ee9900', fillOpacity: 0 }); - + vectors.addFeatures(box); return box;