Commit 51431f909577c1429692c0827421b857b7e3084d
1 parent
283de750
refactor DEFECT-494 从右边选择设备,出现设备弹框,然后点击其他的位置,再回去点设备应该会弹出设备弹框问题
Showing
1 changed file
with
5 additions
and
0 deletions
| @@ -273,6 +273,11 @@ | @@ -273,6 +273,11 @@ | ||
| 273 | map.removeOverlay(preMarker); | 273 | map.removeOverlay(preMarker); |
| 274 | } | 274 | } |
| 275 | map.addOverlay(marker); | 275 | map.addOverlay(marker); |
| 276 | + //标注监听事件 | ||
| 277 | + marker.addEventListener('click', function () { | ||
| 278 | + map.openInfoWindow(infoWindow, map.getCenter()); | ||
| 279 | + }); | ||
| 280 | + //标注监听事件 | ||
| 276 | } else { | 281 | } else { |
| 277 | const point = new BMap.Point(106.63028229687498, 36.06735821600903); | 282 | const point = new BMap.Point(106.63028229687498, 36.06735821600903); |
| 278 | let options = { | 283 | let options = { |