@jorgmoritz/gis-manager 0.1.30 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/vue/index.cjs +14 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +14 -1
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist/vue/index.js
CHANGED
|
@@ -3021,7 +3021,20 @@ var AirplaneCursor = class {
|
|
|
3021
3021
|
moved = true;
|
|
3022
3022
|
}
|
|
3023
3023
|
if (this.keysPressed.has("z")) {
|
|
3024
|
-
|
|
3024
|
+
const newPos = addVec(pose.position, C.Cartesian3.multiplyByScalar(u3, -step, new C.Cartesian3()));
|
|
3025
|
+
const cartographic = C.Cartographic.fromCartesian(newPos);
|
|
3026
|
+
if (cartographic) {
|
|
3027
|
+
const terrainHeight = this.viewer.scene.globe.getHeight(cartographic) ?? 0;
|
|
3028
|
+
const minAltitude = terrainHeight + 1;
|
|
3029
|
+
if (cartographic.height < minAltitude) {
|
|
3030
|
+
cartographic.height = minAltitude;
|
|
3031
|
+
setPos(C.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, cartographic.height));
|
|
3032
|
+
} else {
|
|
3033
|
+
setPos(newPos);
|
|
3034
|
+
}
|
|
3035
|
+
} else {
|
|
3036
|
+
setPos(newPos);
|
|
3037
|
+
}
|
|
3025
3038
|
moved = true;
|
|
3026
3039
|
}
|
|
3027
3040
|
if (this.keysPressed.has("q")) {
|