From d52fa81549b32a16a59b17732adb19a0c6559cc1 Mon Sep 17 00:00:00 2001 From: arno Date: Mon, 11 Apr 2011 22:39:07 +0200 Subject: [PATCH] use all 3 available osm tile servers --- public/js/syj.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/js/syj.js b/public/js/syj.js index 78d7606..85db31a 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -288,7 +288,11 @@ var SYJView = { theme: null }); - baseLayer = new OpenLayers.Layer.OSM("OSM", null, { wrapDateLine: true , attribution: SyjStrings.osmAttribution }); + baseLayer = new OpenLayers.Layer.OSM("OSM", [ + 'http://a.tile.openstreetmap.org/${z}/${x}/${y}.png', + 'http://b.tile.openstreetmap.org/${z}/${x}/${y}.png', + 'http://c.tile.openstreetmap.org/${z}/${x}/${y}.png'], + { wrapDateLine: true , attribution: SyjStrings.osmAttribution }); layerOptions = {format: OpenLayers.Format.WKT, projection: WGS84, -- 2.39.2