All,
I’ve got some locations stored in my database with long and lat coordinates. I’m debating between creating a map for each one of the locations or adding markers for all of them. Any advice would be appreciated on that idea but my issue is that I’m getting these values from my mySQL database. It looks like the only way you can actually add these is through javascript. Do I need to pass in the coordinates to a javascript function to create the markers? How would that look? Any suggestions are appreciated!
All, I’ve got some locations stored in my database with long and lat coordinates.
Share
You’re correct. You have to fetch the data from the database and use something along the line of:
In a < script type=”text/javascript”>-tag on the page.
The above is taken from http://code.google.com/apis/maps/documentation/javascript/examples/marker-simple.html, so you’ll have to adapt it to your needs.