Commit 51431f909577c1429692c0827421b857b7e3084d

Authored by fengtao
1 parent 283de750

refactor DEFECT-494 从右边选择设备,出现设备弹框,然后点击其他的位置,再回去点设备应该会弹出设备弹框问题

... ... @@ -273,6 +273,11 @@
273 273 map.removeOverlay(preMarker);
274 274 }
275 275 map.addOverlay(marker);
  276 + //标注监听事件
  277 + marker.addEventListener('click', function () {
  278 + map.openInfoWindow(infoWindow, map.getCenter());
  279 + });
  280 + //标注监听事件
276 281 } else {
277 282 const point = new BMap.Point(106.63028229687498, 36.06735821600903);
278 283 let options = {
... ...