浏览代码

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 查看文件

let lon = config.position.x let lon = config.position.x
let lat = config.position.y let lat = config.position.y
let height = config.position.z 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.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(
that._position that._position
) )

正在加载...
取消
保存