소스 검색

add height offset for s3m #98

tags/2.13.0
Caven Chen 3 년 전
부모
커밋
820e390562
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      libs/s3m/S3MTiles/S3MTilesLayer.js

+ 1
- 1
libs/s3m/S3MTiles/S3MTilesLayer.js 파일 보기

@@ -167,7 +167,7 @@ S3MTilesLayer.prototype.loadConfig = function(url) {
let lon = config.position.x
let lat = config.position.y
let height = config.position.z
that._position = Cesium.Cartesian3.fromDegrees(lon, lat, height + this.heightOffset)
that._position = Cesium.Cartesian3.fromDegrees(lon, lat, height + that.heightOffset)
that.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(
that._position
)

Loading…
취소
저장