我想将以下 2 个 google map V2 API 事件转换为 V3,但我一生都无法弄清楚该怎么做,有人可以给我一些指示吗?
GEvent.addListener(map, "click", function(overlay, point){
if (point != null) {
window.status = "Click " + point.lat() + ", "+ point.lng();
}
else if (overlay != null)
{
window.status = "Overlay " + lastPoint.lat() + ", "+ lastPoint.lng();
}
});
GEvent.addListener(map, "mousemove", function(point){
lastPoint = point;
});