Skip to content

Commit

Permalink
Fix folium pmtiles bug (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Dec 15, 2023
1 parent cbbb32c commit dd2bc5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions leafmap/foliumap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3813,7 +3813,7 @@ def __init__(
self.style = {}


class PMTilesMapLibreTooltip(JSCSSMixin, Layer):
class PMTilesMapLibreTooltip(JSCSSMixin, MacroElement):
"""Creates a PMTilesMapLibreTooltip object for displaying tooltips.
Adapted from https://github.com/jtmiclat/folium-pmtiles. Credits to @jtmiclat.
"""
Expand Down Expand Up @@ -3875,4 +3875,5 @@ class PMTilesMapLibreTooltip(JSCSSMixin, Layer):
)

def __init__(self, name=None, **kwargs):
super().__init__(name=name if name else "PMTilesTooltip", **kwargs)
# super().__init__(name=name if name else "PMTilesTooltip", **kwargs)
super().__init__(**kwargs)

0 comments on commit dd2bc5a

Please sign in to comment.