Home › Forums › JavaScript › List + google maps = headache › Re: List + google maps = headache
April 22, 2009 at 3:25 pm
#56632
apostrophe
Participant
I’m no Javascript ninja but if you read through that tutorial again you will notice that he has an empty list in the html
Code:
and calls the list items dynamically with jQuery in that bit of code you posted
Code:
$(“
“)
.html(“Point “+i)
.click(function(){
map.panTo(marker.getLatLng());
})
.appendTo(“#list”);
In his example the variable "i" is a random point on the map so I guess for your example you would create a variable for each specific location and append those to the list.
Hope that helps a bit. If I have some time tomorrow I will try and work through it properly.