Skip to content
Snippets Groups Projects
Commit 1840f847 authored by Winnie's avatar Winnie
Browse files

Updates

parent ae697653
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ Double Handle Slider Modified from: http://jqueryui.com/slider/#range
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="histogram.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA9xCYy2Co-0GWfHT8e1smTjIneNbWSfPgY&libraries=visualization"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA9xCYy2Co-0GWfHT8e1smTjIneNbWSfPgY&libraries=visualization&callback=initMap"></script>
<script src="map.js"></script>
<script src="infoWindow.js"></script>
......
......@@ -30,7 +30,7 @@
dateobj.put("year",r.getDate().getYear());
dateobj.put("month",r.getDate().getMonth());
dateobj.put("day",r.getDate().getDay());
date.add(r.getDate());
date.add(dateobj);
count.add(r.getCount());
}
......
......@@ -193,6 +193,7 @@ function reqMap(params){
xhr.onreadystatechange = function() {//Call a function when the state changes (i.e. response comes back)
// Update the dropdown when response is ready
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {
console.log(this.responseText);
var nodeList = JSON.parse(this.responseText);
initMap(nodeList["latitude"], nodeList["longitude"]);
// document.getElementById("outputDetails").innerHTML = "Found " + nodeList["n"] + " results " + "(" + nodeList["time"] + " seconds)<br> Total Population: " + nodeList["individualCount"];
......
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