From: arno Date: Mon, 11 Apr 2011 20:39:07 +0000 (+0200) Subject: use all 3 available osm tile servers X-Git-Tag: v0.3.2~12 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=d52fa81549b32a16a59b17732adb19a0c6559cc1 use all 3 available osm tile servers --- 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,