|
|
@ -238,19 +238,19 @@ export class MarkerCluster { |
|
|
|
|
|
|
|
const reset = () => { |
|
|
|
if (!window.openInfoWindow) { |
|
|
|
// console.log(window.openInfoWindow, "rest");
|
|
|
|
// console.log("窗口movestart中", new Date());
|
|
|
|
this.infoWindow?.close?.(); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
map.on("zoomstart", reset); |
|
|
|
map.on("mapmove", reset); |
|
|
|
map.on("zoomend", reset); |
|
|
|
map.on("movestart", reset); |
|
|
|
map.on("moveend", async () => { |
|
|
|
if (window.openInfoWindow) { |
|
|
|
console.log("窗口位移结束"); |
|
|
|
// console.log("窗口位移结束", new Date());
|
|
|
|
window.openInfoWindow = false; |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 840)); |
|
|
|
window.infoWindow?.open?.(); |
|
|
|
// window.infoWindow?.open?.();
|
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|