react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

How can I get the DOM element for a Marker?

Open SaavanNanavati opened this issue 2 years ago • 1 comments

I want to get the DOM element for the Marker so I can pass an ID attribute to the HTML element of the Marker.

Is it possible to directly pass an ID attribute to the DOM element for the Marker using props (ideal case)? If not, can I pass a Ref to the DOM element so I can manipulate it after it is rendered to the DOM to set the ID attribute? I have looked at the documentation and conducted some research but have not found a means to do this.

Thanks and please let me know if this use case needs clarification.

SaavanNanavati avatar Jun 23 '23 16:06 SaavanNanavati

@JustFly1984 It seems like you're really active here so just wanted to tag for visibility. Thanks.

SaavanNanavati avatar Jun 23 '23 16:06 SaavanNanavati