开发 Maps JavaScript API Reference Manual Map MapsEvent

MapsEvent 最后更新时间: 2026年07月02日

This object is used to represent various mouse events returned on maps, overlays, and layers, and includes the following fields:

Attribute

Type

Description

lnglat

LngLat

Latitude and longitude coordinates of the cursor when the event occurred

pixel

Pixel

Pixel coordinates of the cursor when the event occurred

type

string

Event type

target

Object

The target object of the event varies by type. For example, if the event object is a Marker, then the target represents the Marker; if the event object is something else, the target changes accordingly

返回顶部 示例中心 常见问题 智能客服 公众号
二维码