Google 地图 JavaScript API 中标记位置发生变化时的事件
Event when marker location changes in Google Maps JavaScript API
我不知道如何处理 Google 地图标记更改。
理想情况下,我想实时获取标记位置变化。
最后,我 checked the docs 但我没有找到一个特定的事件来涵盖这个案例。
这很简单:
marker.addListener("dragend", e => {
// Do stuff here
});
我不知道如何处理 Google 地图标记更改。
理想情况下,我想实时获取标记位置变化。
最后,我 checked the docs 但我没有找到一个特定的事件来涵盖这个案例。
这很简单:
marker.addListener("dragend", e => {
// Do stuff here
});