Accept popup options.

This commit is contained in:
David Molineus
2015-01-27 17:14:04 +01:00
parent e10bfd24a3
commit 126b84f524
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
}
},