Skip to content

Commit

Permalink
Merge pull request #1035 from TerriaJS/baseLayerOrder
Browse files Browse the repository at this point in the history
Fix order of composite base layers in cesium.
  • Loading branch information
RacingTadpole committed Nov 5, 2015
2 parents 2ea0ff1 + 5a0ecdf commit 33af227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Models/Cesium.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ Cesium.prototype.lower = function(index) {
Cesium.prototype.lowerToBottom = function(item) {

if (defined(item.items)) {
// the front item is item 0
// the front item is at the end of the list.
// so to preserve order of any subitems, send any subitems to the bottom in order from the front
for (var i = 0; i < item.items.length; ++i) {
for (var i = item.items.length - 1; i >= 0; --i) {
var subItem = item.items[i];
this.lowerToBottom(subItem); // recursive
}
Expand Down

0 comments on commit 33af227

Please sign in to comment.