Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design Get Marker element by ID not working?

  • Get Marker element by ID not working?

    updated 2 years, 11 months ago 0 Member · 1 Post
  • Maverick

    July 22, 2019 at 1:46 pm

    Hello, ​ So i’m pretty confused. I’m using the Google Maps API and React (google-react-maps) to make markers on my map from an array passed to me. For other parts of my code, I need to get the Marker by it’s ID from separate documents after the page is rendered. ​ The thing is, getting the marker by it’s ID is just returning null. I have console logged the marker objects and they definitely have the right ID, but nothing is ever coming up. The page is definitely rendered, so the call for getting the marker is coming after the marker is rendered. ​ Whats going on here? Is it a React issue? I don’t know what the issue could be. Thanks guys. ​ ​ … … Document.getElementById(‘abc’) // returns null every time – by hq overview garbage_man4467 – –

Viewing 1 of 1 replies
Reply to: Maverick
Your information:

Original Post
0 of 0 posts June 2018