Skip to content

Commit

Permalink
Merge pull request #7278 from shehzan10/specs-globe-terrainprovider
Browse files Browse the repository at this point in the history
Add terrainProvider property to Specs/createGlobe.js
  • Loading branch information
lilleyse authored Nov 21, 2018
2 parents e5ce9c6 + c41f4ea commit 05c44f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Specs/createGlobe.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ define([
_surface : {},
tileLoadedEvent : new Event(),
imageryLayersUpdatedEvent : new Event(),
_terrainProvider : undefined,
terrainProviderChanged : new Event(),
destroy : function() {}
};
Expand All @@ -42,7 +43,11 @@ define([
globe.terrainProviderChanged = new Event();
defineProperties(globe, {
terrainProvider : {
get : function() {
return this._terrainProvider;
},
set : function(value) {
this._terrainProvider = value;
this.terrainProviderChanged.raiseEvent(value);
}
}
Expand Down

0 comments on commit 05c44f4

Please sign in to comment.