forked from Snck3rs/contao-leaflet-maps
Accept popup options.
This commit is contained in:
@@ -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