Explorar el Código

improve the overlay type

tags/2.2.3
Caven Chen hace 4 años
padre
commit
d6c881b82d

+ 2
- 2
modules/overlay/dynamic/DynamicBillboard.js Ver fichero

this._posistion = Parse.parsePosition(position) this._posistion = Parse.parsePosition(position)
this._icon = icon this._icon = icon
this._delegate = new Cesium.Entity({ billboard: {} }) this._delegate = new Cesium.Entity({ billboard: {} })
this.type = Overlay.getOverlayType('dynamic-billboard')
this.type = Overlay.getOverlayType('dynamic_billboard')
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


} }
} }


Overlay.registerType('dynamic-billboard')
Overlay.registerType('dynamic_billboard')


export default DynamicBillboard export default DynamicBillboard

+ 2
- 2
modules/overlay/dynamic/DynamicModel.js Ver fichero

this._posistion = Parse.parsePosition(position) this._posistion = Parse.parsePosition(position)
this._modelUrl = modelUrl this._modelUrl = modelUrl
this._delegate = new Cesium.Entity({ model: {} }) this._delegate = new Cesium.Entity({ model: {} })
this.type = Overlay.getOverlayType('dynamic-model')
this.type = Overlay.getOverlayType('dynamic_model')
this._state = State.INITIALIZED this._state = State.INITIALIZED
} }


} }
} }


Overlay.registerType('dynamic-model')
Overlay.registerType('dynamic_model')


export default DynamicModel export default DynamicModel

Cargando…
Cancelar
Guardar