From dd2bc5ae6518ef1aa4595bb39ff66db37eff54f2 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Fri, 15 Dec 2023 15:51:23 -0500 Subject: [PATCH] Fix folium pmtiles bug (#641) --- leafmap/foliumap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/leafmap/foliumap.py b/leafmap/foliumap.py index 3459a571d1..1f03cfc803 100644 --- a/leafmap/foliumap.py +++ b/leafmap/foliumap.py @@ -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. """ @@ -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)