Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #382 from Kitware/fix-layer-ordering
Browse files Browse the repository at this point in the history
Fix the layer re-ordering algorithm
  • Loading branch information
dorukozturk authored Nov 28, 2016
2 parents bf000b3 + a4ec283 commit 7755e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_external/js/views/map/MapPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ minerva.views.MapPanel = minerva.views.Panel.extend({
changeLayerZIndex: function (dataset) {
var baseMapZIndex = 1;
if (dataset.get('order')) {
this.datasetLayerReprs[dataset.id][dataset.get('order')]();
this.datasetLayerReprs[dataset.id]['geoJsLayer'][dataset.get('order')]();
}
// TODO: HACK MoveToBottom method will set the layer's index to 0 and put it under the base map.
// Calling moveUp(1) to place it on top of base map
if (dataset.get('order') === 'moveToBottom') {
this.datasetLayerReprs[dataset.id].moveUp(baseMapZIndex);
this.datasetLayerReprs[dataset.id]['geoJsLayer'].moveUp(baseMapZIndex);
}
this.map.draw();
},
Expand Down

0 comments on commit 7755e73

Please sign in to comment.