Skip to content

Commit cefe9d5

Browse files
committed
Add population to city popups
1 parent 8f4a4cd commit cefe9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

06 - Type Ahead/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
// Place markers for the 100 closest matches
154154
matchArray.slice(0, 100).forEach(match => {
155155
matchesMarkers.push(L.marker([match.latitude, match.longitude])
156-
.bindPopup(`<strong>${match.city}</strong>`)
156+
.bindPopup(`<strong>${match.city}</strong><br>Pop ${numberWithCommas(match.population)}`)
157157
.addTo(mymap));
158158
});
159159

0 commit comments

Comments
 (0)