From c41f4ea51de376288ddfce7761a5d830759536e0 Mon Sep 17 00:00:00 2001 From: Shehzan Mohammed Date: Wed, 21 Nov 2018 13:35:38 -0500 Subject: [PATCH] Add terrainProvider property to Specs/createGlobe.js --- Specs/createGlobe.js | 5 +++++ 1 file changed, 5 insertions(+) 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); } }