diff --git a/Specs/createGlobe.js b/Specs/createGlobe.js index 859850c72cf3..f55778f9d7cb 100644 --- a/Specs/createGlobe.js +++ b/Specs/createGlobe.js @@ -27,6 +27,7 @@ define([ _surface : {}, tileLoadedEvent : new Event(), imageryLayersUpdatedEvent : new Event(), + _terrainProvider : undefined, terrainProviderChanged : new Event(), destroy : function() {} }; @@ -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); } }