Google maps API getting infowindow on click with geojson file
问题 I am using the google maps API and I am displaying polygons on a map using a GeoJSON file. When the user presses inside the polygon, I would like an InfoWindow to appear and display data that is stored in the properties. Seems easy enough but when I am clicking on the polygons, nothing is popping up. Can anyone explain what I am doing wrong? Below is what I am currently attempting: map.data.loadGeoJson('plant_bounds_2011.json'); map.data.setStyle({ fillColor: 'red', strokeWeight: 1 }); var