Skip to content

Commit 43981a2

Browse files
author
Kogis IWI
committed
Use all url templates provided by terrain config file
1 parent 0836231 commit 43981a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/Core/CesiumTerrainProvider.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ define([
494494

495495
var tmsY = (yTiles - y - 1);
496496

497-
// Use the first URL template. In the future we should use them all.
498-
var url = urlTemplates[0].replace('{z}', level).replace('{x}', x).replace('{y}', tmsY);
497+
var url = urlTemplates[(x + tmsY + level) % urlTemplates.length].replace('{z}', level).replace('{x}', x).replace('{y}', tmsY);
499498

500499
var proxy = this._proxy;
501500
if (defined(proxy)) {

0 commit comments

Comments
 (0)