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