diff --git a/modules/svg/mapillary_map_features.js b/modules/svg/mapillary_map_features.js index c6ef91442..bbd1763db 100644 --- a/modules/svg/mapillary_map_features.js +++ b/modules/svg/mapillary_map_features.js @@ -113,7 +113,7 @@ export function svgMapillaryMapFeatures(projection, context, dispatch) { return feature.detections.some(function(detection) { var imageKey = detection.image_key; var image = service.cachedImage(imageKey); - return usernames.indexOf(image.captured_by) !== -1; + return image && usernames.indexOf(image.captured_by) !== -1; }); }); } diff --git a/modules/svg/mapillary_signs.js b/modules/svg/mapillary_signs.js index 4e3906b11..800424c24 100644 --- a/modules/svg/mapillary_signs.js +++ b/modules/svg/mapillary_signs.js @@ -114,7 +114,7 @@ export function svgMapillarySigns(projection, context, dispatch) { return feature.detections.some(function(detection) { var imageKey = detection.image_key; var image = service.cachedImage(imageKey); - return usernames.indexOf(image.captured_by) !== -1; + return image && usernames.indexOf(image.captured_by) !== -1; }); }); }