show tooltip on map

This commit is contained in:
Jan Prochazka
2022-06-11 18:41:17 +02:00
parent ffe82a82fa
commit f2402cadb0
2 changed files with 3 additions and 1 deletions

View File

@@ -123,6 +123,7 @@
// does this feature have a property named popupContent?
if (feature.properties && feature.properties.popupContent) {
layer.bindPopup(feature.properties.popupContent);
layer.bindTooltip(feature.properties.popupContent);
}
},
})