Skip to content

Commit d84ba52

Browse files
Merge pull request #7 from CoderDojoNYC/LucasWALK
Adding custom pins
2 parents ecab9b3 + 42d17c7 commit d84ba52

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

images/FCpin.png

4.47 KB
Loading

javascripts/data.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@ NH.data = NH.data || {};
9696
content: information
9797
});
9898

99-
99+
var iconBase = 'images/';
100100
var marker = new google.maps.Marker({
101101
position: myLatlng,
102102
map: map,
103+
icon: iconBase + 'FCpin.png',
103104
//title: information,
104105
animation: google.maps.Animation.DROP
105106
});
@@ -109,6 +110,7 @@ NH.data = NH.data || {};
109110
// infowindow.close();
110111
//});
111112

113+
112114
google.maps.event.addListener(marker, 'click', function() {
113115
infowindow.open(map,marker);
114116
});

0 commit comments

Comments
 (0)