Get DOM Element of a marker in Google Maps API 3

前端 未结 5 1018
野性不改
野性不改 2020-12-15 04:16

I\'m trying to find a way to get the DOM element of a marker. It seems that Google uses different elements for showing a marker and one of handling the event.

I\'ve

5条回答
  •  暖寄归人
    2020-12-15 04:55

    1. Customize overlays (by implements onAdd, draw, remove) while drag it has some issues.
    2. Maybe you can get the marker dom element by the class name gmnoprint and the index it has been appended in.

提交回复
热议问题