Skip to content

Commit 0c07beb

Browse files
committed
hover thumbnails
1 parent a67b9f5 commit 0c07beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_static/js/interactionHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MmtMap.hoverInteractions = {
3030
let name = feature.properties.name;
3131
let thumbnail = feature.properties.thumbnail_url;
3232

33-
if (MmtMap.settings.hoverThumbs) {
33+
if (MmtMap.settings.hoverThumbs && thumbnail) {
3434
MmtMap.hoverInteractions.smallPopup.setLngLat(coords).setHTML('<div class="popup_header"><img alt="location thumbnail" src="' + thumbnail + '" class="m-0 p-0" /img><p class="m-0 p-0 text-center">' + name + '</p></div>').addTo(map);
3535
} else {
3636
MmtMap.hoverInteractions.smallPopup.setLngLat(coords).setHTML('<p class="m-0 p-0 text-center">' + name + '</p>').addTo(map);

0 commit comments

Comments
 (0)