huweili-cesium 1.2.26 → 1.2.27
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/js/basis.js +2 -2
- package/package.json +1 -1
package/js/basis.js
CHANGED
|
@@ -123,6 +123,7 @@ export function basicConfig() {
|
|
|
123
123
|
const mouseController = (map, _mapId, callbacks = {}) => {
|
|
124
124
|
// 添加右键点击事件监听
|
|
125
125
|
map.screenSpaceEventHandler.setInputAction((click) => {
|
|
126
|
+
console.log('右键点击事件触发')
|
|
126
127
|
// 获取点击位置的笛卡尔坐标
|
|
127
128
|
const cartesian = map.camera.pickEllipsoid(click.position, map.scene.globe.ellipsoid);
|
|
128
129
|
|
|
@@ -172,8 +173,7 @@ export function basicConfig() {
|
|
|
172
173
|
lat: Number(lat),
|
|
173
174
|
height: Number(height)
|
|
174
175
|
});
|
|
175
|
-
|
|
176
|
-
// alert(`点击位置坐标:\n经度:${Number(lng).toFixed(6)}\n纬度:${Number(lat).toFixed(6)}\n高度:${Number(height).toFixed(2)}米`);
|
|
176
|
+
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|