Skip to content

Commit

Permalink
Add waring and skip when cluster object does not have p property.
Browse files Browse the repository at this point in the history
This is to debug/workaround PastVu#646
  • Loading branch information
kabalin committed Dec 9, 2023
1 parent 81c23c0 commit d1c7aaa
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 d1c7aaa

Please sign in to comment.