Skip to content

Commit

Permalink
Merge pull request #647 from kabalin/missingp
Browse files Browse the repository at this point in the history
Add waring and skip when cluster object does not have p property.
  • Loading branch information
aeifn authored Dec 9, 2023
2 parents d3f153b + d1c7aaa commit cfb6a21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/js/module/map/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,12 @@ define([
picFormat = Photo.picFormats.x;
}

if (!cluster.p) {
// This is really to debug issue #646
console.warn('Missing cluster photo', cluster);
continue;
}

cluster.p.sfile = picFormat + cluster.p.file;
divIcon = L.divIcon({
className: 'clusterIcon fringe ' + measure,
Expand Down

0 comments on commit cfb6a21

Please sign in to comment.