javascript - Google Maps API markers not placing -


I am trying to keep some markers on the map but there is no luck. By the way, it actually shows a marker that was said to the title:

   

This works, but when I try to add more markers, they do not come up. I am using php with it, so the code I'm running looks like this:

   

I should also mention that I am using WordPress, this code checks without any errors, and resonance returns a value, so I do not know what it is , I started learning JS / ISL last night. thank you in advanced!

Change your approach a bit, instead of creating a new script element for each marker instead of reading data inside your javascript Try it Then loop on this data with javascript to create markers.


Comments