Selaa lähdekoodia

Merge branch 'master' of https://github.com/dvgis/dc-sdk

tags/3.3.0
cavencj 2 vuotta sitten
vanhempi
commit
23c820ac7c
3 muutettua tiedostoa jossa 28 lisäystä ja 3 poistoa
  1. 18
    0
      CHANGES_en.md
  2. 6
    1
      CHANGES_zh.md
  3. 4
    2
      src/modules/viewer/Viewer.js

+ 18
- 0
CHANGES_en.md Näytä tiedosto

# Change Log # Change Log


# Change Log

### 3.2.0 - 2023-09-25

#### Breaking Changes 📣

- Upgraded @cesium/engine to version 4.0.0
- framework to add development mode

#### Additions 🎉

- Added support for tileset hook events
- Added RasterTileLayer

#### Fixes 🔧

- Optimize camera position calculation

### 3.1.0 - 2023-08-06 ### 3.1.0 - 2023-08-06


#### Breaking Changes 📣 #### Breaking Changes 📣

+ 6
- 1
CHANGES_zh.md Näytä tiedosto

# Change Log # Change Log


### 3.2.0
### 3.2.0 - 2023-09-25


#### Breaking Changes 📣 #### Breaking Changes 📣


- 添加 tileset 钩子事件的支持 - 添加 tileset 钩子事件的支持
- 添加 RasterTileLayer - 添加 RasterTileLayer


#### Fixes 🔧

- 优化相机当前位置计算方式


### 3.1.0 - 2023-08-06 ### 3.1.0 - 2023-08-06


#### Breaking Changes 📣 #### Breaking Changes 📣

+ 4
- 2
src/modules/viewer/Viewer.js Näytä tiedosto

} }


get cameraPosition() { get cameraPosition() {
let position = Transform.transformCartesianToWGS84(this.camera.positionWC)
let position = Transform.transformCartographicToWGS84(
this.camera.positionCartographic
)
if (position) { if (position) {
position.heading = Cesium.Math.toDegrees(this.camera.heading) position.heading = Cesium.Math.toDegrees(this.camera.heading)
position.pitch = Cesium.Math.toDegrees(this.camera.pitch) position.pitch = Cesium.Math.toDegrees(this.camera.pitch)
} }


get zoom() { get zoom() {
let height = this._delegate.camera.positionCartographic.height
let height = this.camera.positionCartographic.height
let A = 40487.57 let A = 40487.57
let B = 0.00007096758 let B = 0.00007096758
let C = 91610.74 let C = 91610.74

Loading…
Peruuta
Tallenna