| class LoadingMask extends Widget { | class LoadingMask extends Widget { | ||||
| constructor() { | constructor() { | ||||
| super() | super() | ||||
| this._wrapper = DomUtil.create('div', 'dc-loading-container') | |||||
| this._wrapper = DomUtil.create('div', 'dc-loading-mask') | |||||
| this.type = Widget.getWidgetType('loading_mask') | this.type = Widget.getWidgetType('loading_mask') | ||||
| this._state = State.INITIALIZED | this._state = State.INITIALIZED | ||||
| } | } |
| <span>海拔:${alt.toFixed(2)} 米</span>` | <span>海拔:${alt.toFixed(2)} 米</span>` | ||||
| } | } | ||||
| /** | |||||
| * | |||||
| * @private | |||||
| */ | |||||
| _cameraHandler() { | _cameraHandler() { | ||||
| let now = Cesium.getTimestamp() | let now = Cesium.getTimestamp() | ||||
| if (now < this._lastUpdate + 300) { | if (now < this._lastUpdate + 300) { |
| .dc-loading-container { | |||||
| width: 100%; | |||||
| height: 100%; | |||||
| .dc-loading-mask { | |||||
| position: absolute; | position: absolute; | ||||
| z-index: 2; | |||||
| top: 0; | top: 0; | ||||
| left: 0; | left: 0; | ||||
| width: 100%; | |||||
| height: 100%; | |||||
| display: flex; | display: flex; | ||||
| justify-content: center; | justify-content: center; | ||||
| align-items: center; | align-items: center; |