MapMouseEvent
定义于: src/ui/events.ts:489
由鼠标交互触发的地图事件;
实现
- MapLibreEvent<MouseEvent>
属性
lngLat
lngLat: LngLat
定义于: src/ui/events.ts:512
鼠标光标的地理位置;
originalEvent
originalEvent: MouseEvent
定义于: src/ui/events.ts:502
触发地图事件的DOM事件;
实现
MapLibreEvent.originalEvent
point
point: Point
定义于: src/ui/events.ts:507
鼠标光标的像素坐标,相对于地图并从左上角开始测量;
target
target: Map
定义于: src/ui/events.ts:497
触发事件的Map
对象;
实现
MapLibreEvent.target
type
type: "click" | "contextmenu" | "dblclick" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup"
定义于: src/ui/events.ts:492
事件类型;
实现
MapLibreEvent.type
重写
Event.type