| throw new Error('Viewer:the id is empty') | throw new Error('Viewer:the id is empty') | ||||
| } | } | ||||
| this._delegate = Cesium.Viewer | this._delegate = Cesium.Viewer | ||||
| ? Cesium.Viewer(id, { | |||||
| ? new Cesium.Viewer(id, { | |||||
| ...DEF_OPTS, | ...DEF_OPTS, | ||||
| ...options, | ...options, | ||||
| }) | }) |