aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--csci4131/hw3/Untitled.pngbin0 -> 91 bytes
-rw-r--r--csci4131/hw3/contacts.js5
2 files changed, 3 insertions, 2 deletions
diff --git a/csci4131/hw3/Untitled.png b/csci4131/hw3/Untitled.png
new file mode 100644
index 0000000..92a4aa1
--- /dev/null
+++ b/csci4131/hw3/Untitled.png
Binary files differ
diff --git a/csci4131/hw3/contacts.js b/csci4131/hw3/contacts.js
index 94340b2..a8c4b26 100644
--- a/csci4131/hw3/contacts.js
+++ b/csci4131/hw3/contacts.js
@@ -39,7 +39,8 @@ function addPoints(locations) {
map,
position: locations[x].geometry.location,
title: newEntry.getElementsByClassName("name")[0].textContent,
- data : {
+ icon: "./Untitled.png",
+ data: {
content: "<div class='id'>" +
"<b>" + newEntry.getElementsByClassName("name")[0].textContent + "</b>" + "<br>" +
newEntry.getElementsByClassName("category")[0].textContent + "<br>" +
@@ -52,7 +53,7 @@ function addPoints(locations) {
if (!this.infoWindow) {
this.infoWindow = new google.maps.InfoWindow({
content: this.data.content,
- // content: newEntry.getElementsByClassName("address")[0],
+
});
}
this.infoWindow.open(map, this);