huweili-cesium 1.2.29 → 1.2.30
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 +15 -1
- package/package.json +1 -1
package/js/basis.js
CHANGED
|
@@ -146,6 +146,12 @@ export function basicConfig() {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
console.log('右键点击事件触发,点击位置:', position);
|
|
149
|
+
callbacks.onRightClick?.(position);
|
|
150
|
+
} else {
|
|
151
|
+
callbacks.onRightClick?.({
|
|
152
|
+
mapId: _mapId,
|
|
153
|
+
screenPosition: click.position,
|
|
154
|
+
});
|
|
149
155
|
}
|
|
150
156
|
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
151
157
|
|
|
@@ -168,7 +174,15 @@ export function basicConfig() {
|
|
|
168
174
|
callbacks.onLeftClick?.({
|
|
169
175
|
lng: Number(lng),
|
|
170
176
|
lat: Number(lat),
|
|
171
|
-
height: Number(height)
|
|
177
|
+
height: Number(height),
|
|
178
|
+
mapId: _mapId,
|
|
179
|
+
screenPosition: click.position,
|
|
180
|
+
cartesian,
|
|
181
|
+
});
|
|
182
|
+
} else {
|
|
183
|
+
callbacks.onLeftClick?.({
|
|
184
|
+
mapId: _mapId,
|
|
185
|
+
screenPosition: click.position,
|
|
172
186
|
});
|
|
173
187
|
}
|
|
174
188
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|