Explorar el Código

add height offset for s3m #98

tags/2.13.0
Caven Chen hace 3 años
padre
commit
820e390562
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      libs/s3m/S3MTiles/S3MTilesLayer.js

+ 1
- 1
libs/s3m/S3MTiles/S3MTilesLayer.js Ver fichero

@@ -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
)

Cargando…
Cancelar
Guardar