Skip to content

Commit d697154

Browse files
authored
allow for simple Popup in GeoJson too (#1528)
1 parent ab77557 commit d697154

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

folium/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from folium.elements import JSCSSMixin
1818
from folium.folium import Map
19-
from folium.map import (FeatureGroup, Icon, Layer, Marker, Tooltip)
19+
from folium.map import (FeatureGroup, Icon, Layer, Marker, Tooltip, Popup)
2020
from folium.utilities import (
2121
validate_locations,
2222
_parse_size,
@@ -514,7 +514,7 @@ def __init__(self, data, style_function=None, highlight_function=None, # noqa
514514
self.add_child(tooltip)
515515
elif tooltip is not None:
516516
self.add_child(Tooltip(tooltip))
517-
if isinstance(popup, (GeoJsonPopup)):
517+
if isinstance(popup, (GeoJsonPopup, Popup)):
518518
self.add_child(popup)
519519

520520
def process_data(self, data):

0 commit comments

Comments
 (0)