Browse Source

add height offset for s3m #98

tags/2.13.0
Caven Chen 3 years ago
parent
commit
820e390562
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      libs/s3m/S3MTiles/S3MTilesLayer.js

+ 1
- 1
libs/s3m/S3MTiles/S3MTilesLayer.js View File

@@ -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…
Cancel
Save