src/utils/map.js
@@ -615,10 +615,11 @@ } let nPickFeature = sgworld.Viewer.scene.pick(event.position); console.log(nPickFeature); if (nPickFeature == undefined) { window.flyPoint && Viewer.entities.remove(window.flyPoint); window.flyPoint = undefined; } // if (nPickFeature == undefined) { // window.flyPoint && Viewer.entities.remove(window.flyPoint); // window.flyPoint = undefined; // } // console.log(event.position);//屏幕位置 if (!nPickFeature || !nPickFeature.id) { return