init | map | 地图初始化完成触发此事件 |
click | ({type,target,lnglat,containerPoint}) | 左键单击地图时触发此事件 |
dblclick | ({type,target,lnglat,containerPoint}) | 鼠标双击地图时会触发此事件 |
contextmenu | ({type,target,lnglat,containerPoint}) | 右键单击地图时触发此事件 |
mousemove | ({type,target,lnglat,containerPoint}) | 鼠标在地图区域移动过程中触发此事件 |
mouseover | ({type,target,lnglat,containerPoint}) | 鼠标移入地图区域时触发此事件 |
mouseout | ({type,target,lnglat,containerPoint}) | 鼠标移出地图区域时触发此事件 |
movestart | ({type,targe}) | 地图移动开始时触发此事件 |
move | ({type,targe}) | 地图移动过程中触发此事件 |
moveend | ({type,targe}) | 地图移动结束时触发此事件 |
zoomstart | ({type,targe}) | 地图更改缩放级别开始时触发触发此事件 |
zoomend | ({type,targe}) | 地图更改缩放级别结束时触发触发此事件 |
addoverlay | ({type,target,addoverlay}) | 当使用 Map.addOverlay()方法向地图中添加单个覆盖物时会触发此事件 |
removeoverlay | ({type,target,removeoverlay}) | 当使用 Map.removeOverlay()方法移除单个覆盖物时会触发此事件 |
addcontrol | ({type,target,addcontrol}) | 当使用 Map.addControl()方法向地图中添加单个控件时会触发此事件 |
removecontrol | ({type,target,removecontrol}) | 当使用 Map.removeControl()方法移除单个控件时会触发此事件 |
clearoverlays | ({type,targe}) | 当使用 Map.clearOverlays()方法一次性移除全部覆盖物时会触发此事件 |
dragstart | ({type,target}) | 开始拖拽地图时触发 |
drag | ({type,target}) | 拖拽地图过程中触发 |
dragend | ({type,target}) | 停止拖拽地图时触发 |
layeradd | ({type,target,layer}) | 添加一个自定义地图图层时触发此事件 |
layerremove | ({type,target,layer}) | 移除一个自定义地图图层时触发此事件 |
load | ({type,targe}) | 调用 Map.centerAndZoom()方法时会触发此事件这表示位置、缩放层级已经确定,但可能还在载入地图瓦片 |
resize | ({type,target,newSize,oldSize}) | 地图可视区域大小发生变化时会触发此事件 |
levels | ({type,target,minzoom,maxzoom}) | 调用 setMinZoom 和 setMaxZoom 时会触发此事件 |
touchstart | ({type,target,lnglat,containerPoint}) | 触摸开始时触发此事件,仅适用移动设备 |
touchmove | ({type,target,lnglat,containerPoint}) | 触摸移动时触发此事件,仅适用移动设备 |
touchend | ({type,target,lnglat,containerPoint}) | 触摸结束时触发此事件,仅适用移动设备 |
longpress | ({type,target,lnglat,containerPoint}) | 长按事件,仅适用移动设备 |