Give OpenLayers three different hosts (all really pointing at tile) to
get mapnik tiles from so it loads tiles more quickly.
This commit is contained in:
parent
d29a319ab0
commit
c941bc197c
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function createMap(divName) {
|
||||||
projection: "EPSG:41001" });
|
projection: "EPSG:41001" });
|
||||||
|
|
||||||
var mapnik = new OpenLayers.Layer.TMS("Mapnik",
|
var mapnik = new OpenLayers.Layer.TMS("Mapnik",
|
||||||
"http://tile.openstreetmap.org/",
|
["http://a.tile.openstreetmap.org/","http://b.tile.openstreetmap.org/","http://c.tile.openstreetmap.org/"],
|
||||||
{ type: 'png', getURL: getTileURL, displayOutsideMaxExtent: true });
|
{ type: 'png', getURL: getTileURL, displayOutsideMaxExtent: true });
|
||||||
map.addLayer(mapnik);
|
map.addLayer(mapnik);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue