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.
function addObjectToMap(url, zoom, callback) {
var layer = new OpenLayers.Layer.GML("Objects", url, {
format: OpenLayers.Format.OSM,
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
});
projection: new OpenLayers.Projection("EPSG:4326"),
displayInLayerSwitcher: false
});