aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131/hw3/contacts.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--csci4131/hw3/contacts.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/csci4131/hw3/contacts.js b/csci4131/hw3/contacts.js
index af8c84e..50f72d8 100644
--- a/csci4131/hw3/contacts.js
+++ b/csci4131/hw3/contacts.js
@@ -45,7 +45,7 @@ function initMap() {
function addPoints(locations) {
for (x in locations) {
- newEntry = document.getElementsByClassName("entry")[x];
+ var newEntry = document.getElementsByClassName("entry")[x];
var marker = new google.maps.Marker({
map,
position: locations[x].geometry.location,
@@ -58,16 +58,15 @@ function addPoints(locations) {
newEntry.getElementsByClassName("room")[0].textContent + " " + newEntry.getElementsByClassName("street")[0].textContent + "<br>" +
newEntry.getElementsByClassName("city")[0].textContent +
"</div>",
- }
+ },
});
marker.addListener('click', function () {
if (!this.infoWindow) {
this.infoWindow = new google.maps.InfoWindow({
content: this.data.content,
});
-
+ this.infoWindow.open(map, this);
}
- this.infoWindow.open(map, this);
})
}
}