We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67b9f5 commit 0c07bebCopy full SHA for 0c07beb
project_static/js/interactionHandler.js
@@ -30,7 +30,7 @@ MmtMap.hoverInteractions = {
30
let name = feature.properties.name;
31
let thumbnail = feature.properties.thumbnail_url;
32
33
- if (MmtMap.settings.hoverThumbs) {
+ if (MmtMap.settings.hoverThumbs && thumbnail) {
34
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);
35
} else {
36
MmtMap.hoverInteractions.smallPopup.setLngLat(coords).setHTML('<p class="m-0 p-0 text-center">' + name + '</p>').addTo(map);
0 commit comments