mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Accept popup options.
This commit is contained in:
1 parent
e10bfd24a3
commit
126b84f524
2 files changed
+3
-3
No files matched your search
@@ -226,9 +226,9 @@ L.Contao = L.Class.extend({
|
||||
bindPopupFromFeature: function (obj, feature) {
|
||||
if (feature.properties) {
|
||||
if (feature.properties.popup) {
|
||||
obj.bindPopup(feature.properties.popup);
|
||||
obj.bindPopup(feature.properties.popup, feature.properties.popupOptions);
|
||||
} else if (feature.properties.popupContent) {
|
||||
obj.bindPopup(feature.properties.popupContent);
|
||||
obj.bindPopup(feature.properties.popupContent, feature.properties.popupOptions);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user