Skip to content
Snippets Groups Projects
Commit 36a2d6ae authored by Ray Liu's avatar Ray Liu
Browse files

Finished info window

parent 946e972b
No related branches found
No related tags found
No related merge requests found
//*This code references the info window google maps API
//https://developers.google.com/maps/documentation/javascript/infowindows
// This example displays a marker at the center of Australia.
// When the user clicks the marker, an info window opens.
function initMap(lati, longi,info) {
for(int i=0; i < lati.length; i++){
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 5.5,
center: {lat: 45.0349575, lng: -88.6941305};
});
var contentString = info[i];
var infowindow = new google.maps.InfoWindow({
content: contentString
});
var marker = new google.maps.Marker({
position: {lat: lati[i], lng: longi[i]} ,
map: map,
});
marker.addListener('click', function() {
infowindow.open(map, marker);
});
}
}
\ No newline at end of file
//*This code references the google heat maps API
//https://developers.google.com/maps/documentation/javascript/examples/layer-heatmap
// This example requires the Visualization library. Include the libraries=visualization
// parameter when you first load the API. For example:
......
......@@ -33,8 +33,8 @@
count.add(r.getCount());
}
js.put("longitude", longitude);
js.put("latitude", latitude);
js.put("longitude", longitude);
js.put("name", name);
js.put("date", date);
js.put("individual count", count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment