Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load Markers from a database MySQL on Google Maps v3

I'm trying to send some markers info to a database, the markers are saving in database successful,

But I cant take the data to a page that load the markers, I think thats a problem on programming, or calling the markers to they positions

I will post the link of my examples, and them the programming.

This is my code of index.html

Thanks guys =), waiting one answer, I dont have any idea how to solve it

EDIT: I forgot to say, if you click on the map it create a marker, and if you click on this marker you can edit it informations.

like image 353
Fred Vicentin Avatar asked Nov 19 '25 23:11

Fred Vicentin


1 Answers

One problem may be with your latlng variable. Not sure if the getposition method returns the correct format. Try var latlng = new google.maps.LatLng(marker.getPostion().lat(), marker.getPosition().lng());

like image 50
Kevin Avatar answered Nov 21 '25 14:11

Kevin