diff --git a/ShadowEditor.Web/src/component/gis/GisBasicComponent.js b/ShadowEditor.Web/src/component/gis/GisBasicComponent.js index e4e497c3..ebfba715 100644 --- a/ShadowEditor.Web/src/component/gis/GisBasicComponent.js +++ b/ShadowEditor.Web/src/component/gis/GisBasicComponent.js @@ -71,7 +71,7 @@ GisBasicComponent.prototype.onObjectChanged = function () { GisBasicComponent.prototype.updateUI = function () { var container = UI.get('panel', this.id); var editor = this.app.editor; - if (editor.selected && editor.selected.isGlobe) { + if (editor.selected && editor.selected.userData.type === 'Globe') { container.dom.style.display = ''; } else { container.dom.style.display = 'none'; diff --git a/ShadowEditor.Web/src/gis/Globe.js b/ShadowEditor.Web/src/gis/Globe.js index 89821532..058838ef 100644 --- a/ShadowEditor.Web/src/gis/Globe.js +++ b/ShadowEditor.Web/src/gis/Globe.js @@ -24,7 +24,7 @@ function Globe(camera, renderer, options = {}) { this.name = L_GLOBE; - this.isGlobe = true; + this.userData.type = 'Globe'; this.camera = camera; this.renderer = renderer;