Skip to content

Commit

Permalink
Use all url templates provided by terrain config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogis IWI committed Sep 18, 2015
1 parent 0836231 commit 43981a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Core/CesiumTerrainProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,7 @@ define([

var tmsY = (yTiles - y - 1);

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

var proxy = this._proxy;
if (defined(proxy)) {
Expand Down

0 comments on commit 43981a2

Please sign in to comment.