Skip to content

Commit

Permalink
Added EOX Sentinal2 with labels to LayerManager.
Browse files Browse the repository at this point in the history
- Changed sort order to sort new layers to the top.
- Re: #75
  • Loading branch information
emxsys committed Feb 25, 2018
1 parent f8b1c5b commit d200793
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions root/js/model/globe/LayerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ define([
'worldwind',
'model/globe/layers/EoxOpenStreetMapLayer',
'model/globe/layers/EoxSentinal2CloudlessLayer',
'model/globe/layers/EoxSentinal2WithLabelsLayer',
'model/globe/layers/UsgsContoursLayer',
'model/globe/layers/UsgsImageryTopoBaseMapLayer',
'model/globe/layers/UsgsTopoBaseMapLayer',
Expand All @@ -43,6 +44,7 @@ define([
ww,
EoxOpenStreetMapLayer,
EoxSentinal2CloudlessLayer,
EoxSentinal2WithLabelsLayer,
UsgsContoursLayer,
UsgsImageryTopoBaseMapLayer,
UsgsTopoBaseMapLayer,
Expand Down Expand Up @@ -141,6 +143,7 @@ define([
this.addBaseLayer(new WorldWind.BMNGLandsatLayer(), {enabled: false, detailControl: config.imagerydetailControl});
this.addBaseLayer(new WorldWind.BingAerialWithLabelsLayer(null), {enabled: false, detailControl: config.imagerydetailControl});
this.addBaseLayer(new EoxSentinal2CloudlessLayer(), {enabled: false, detailControl: config.imagerydetailControl});
this.addBaseLayer(new EoxSentinal2WithLabelsLayer(), {enabled: false, detailControl: config.imagerydetailControl});
this.addBaseLayer(new UsgsImageryTopoBaseMapLayer(), {enabled: false, detailControl: config.imagerydetailControl});
this.addBaseLayer(new UsgsTopoBaseMapLayer(), {enabled: false, detailControl: config.imagerydetailControl});
this.addBaseLayer(new WorldWind.BingRoadsLayer(null), {enabled: false, opacity: 0.7, detailControl: config.imagerydetailControl});
Expand Down Expand Up @@ -548,11 +551,11 @@ define([
if (a.order && !isNaN(a.order()) && b.order && !isNaN(b.order())) {
return a.order() - b.order();
} else if (a.order && !isNaN(a.order())) {
return -1;
} else if (b.order && !isNaN(b.order())) {
return 1;
} else if (b.order && !isNaN(b.order())) {
return -1;
} else {
return 0;
return 0;
//return a.name().localeCompare(b.name());
}
};
Expand Down

0 comments on commit d200793

Please sign in to comment.