]> dev.renevier.net Git - syj.git/commitdiff
use all 3 available osm tile servers
authorarno <arno@renevier.net>
Mon, 11 Apr 2011 20:39:07 +0000 (22:39 +0200)
committerarno <arno@renevier.net>
Mon, 11 Apr 2011 20:39:07 +0000 (22:39 +0200)
public/js/syj.js

index 78d7606afe2276634e0db2b6227bb40cf591f22e..85db31ac775e901508f4b65116bf498449d94fcb 100644 (file)
@@ -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,