I’m using the maps api and I want to create multiple markers with the infoBuubbles using coordinates. I pass a string with the coordinates and the information for the infobubble to a FOR loop. So far this is working to create all the markers I need. The problem is with the infobubble, it create a click event for each marker but it only show the infobubble of the last created marker and when I click them.
I look for an answer on the web and can’t find anything to create multiple markers with this maps api.
How can I add multiple markers with the infobubble for each one?
There is a better way than the FOR loop?