4.6 Google Places: Adding an infowindow

Let’s add an infowindow to the places we have mapped from Google. First, create an infowindow variable and define it as a google infowindow in the global space:

Now you need to create an infowindow for every place (marker). This needs to happen inside the .each loop after the marker has been created. Add the highlighted lines to your placesRequest function:

(sample code)

Leave a Reply