|
@@ -208,9 +208,13 @@ export function useAMap(options) {
|
|
|
// 打开InfoWindow,并设置其内容和位置
|
|
|
infoWindow.setContent(content);
|
|
|
infoWindow.open(map, lnglat);
|
|
|
+ // 解决2.0版本无法滚动问题
|
|
|
+ infoWindow.on('mouseover', () => map.setStatus({ zoomEnable: false }));
|
|
|
+ infoWindow.on('mouseout', () => map.setStatus({ zoomEnable: true }));
|
|
|
};
|
|
|
|
|
|
const hideInfo = (e) => {
|
|
|
+ map.setStatus({ zoomEnable: true });
|
|
|
if (!!infoWindow) {
|
|
|
infoWindow.close();
|
|
|
if (!!clickMarker && e) {
|