From b46b3c43279dc5e06cb6c476b00443fe2f5b503a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 29 Jun 2009 02:11:34 +0000 Subject: [PATCH] The default OpenLayers.Layer.GML style can be nearly invisible when viewed on the main map. Set a style that's blue (since not a lot of things on the map are blue), with strokeWidth 3 and opacity 50%. It makes things visible enough without being too intrusive. --- public/javascripts/map.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/javascripts/map.js b/public/javascripts/map.js index c63461fe2..7c9798227 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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 }); -- 2.39.5