I've been trying to connect the list view i have within a foreach data bind through knockout with my google map markers, i have tried.
//Click on item in list view
self.listViewClick = function(list) {
if (this.name) {
map.setZoom(15);
map.panTo(this.latlng);
list.setAnimation(google.maps.Animation.BOUNCE);
}
};
I tried changing out the "list" argument with self, this, and marker. I can only get the last map marker to bounce when i click on it in the list view when its set to marker.
I know i'm missing something but i can't figure out what so far?
Here is my progress so far"
https://github.com/cperry24/interactive-map
Thanks.