Skip to content

Commit

Permalink
fix generatePopup (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: daemon1024 <barun1024@gmail.com>
  • Loading branch information
jywarren and daemon1024 authored Aug 10, 2021
1 parent 805843a commit bb806bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions dist/Leaflet.BlurredLocationDisplay.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ui/gridCenterRectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function changeRectangleColor(options){
function generatePopupContentsFromMarkers(markers) {
let popupContents = "<p><b>People within this region:</b></p>";
popupContents += "<ul>";
if (marker[0].hasOwnProperty('url') && marker[0].hasOwnProperty('url')) {
if (markers[0].hasOwnProperty('url') && markers[0].hasOwnProperty('url')) {
markers.forEach(function(marker) {
if (marker.hasOwnProperty('url') && marker.hasOwnProperty('url')) {
popupContents += "<li><a href='" + marker.url + "'>@" + marker.title + "</a></li>";
Expand Down

0 comments on commit bb806bb

Please sign in to comment.