This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Description
i am trying to implement multiple marker with infowindows when marker id clicked but somwhow value of infowindow is undefined. i am new to jquery but all other issues and code examples on internet seems similar to this.
I am really confused if it is happening to me only or there is some change in usage of infowindow functionality.
$('#map')
.gmap3({
center:[stores[0].latitude, stores[0].longitude],
zoom:10,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
},
navigationControl: true,
scrollwheel: true,
streetViewControl: true
})
.marker(markers)
.infowindow(markers)
.then(function(infowindow) {
console.log("info: ", infowindow)
var map = this.get(0);
var marker = this.get(1);
marker.forEach(function(item,i){
item.addListener('click', function() {
infowindow.open(map, item);
});
})
})