<jupyter_start><jupyter_text>Tile GridsThis shows a ``TileGridTool`` and an ``H3TileGridTool`` that add a Mercator and an H3 tile grid, respectively. There is still a tiny buglet as the bound used are those *before* instead of *after* the change.<jupyter_code>from ipyleaflet import basemaps, FullScreenControl, LayersControl, Map
from ipywidgets import Layout

from leafmaptools.tilegrids import H3TileGridTool, TileGridTool
bm = basemaps.OpenStreetMap.Mapnik
layout = Layout(width="800px", height="400px")
m = Map(center=[0, 0], zoom=3, basemap=bm, layout=layout)
m += LayersControl()
m += FullScreenControl()
m
# Can be added only after the map has been rendered.
t = TileGridTool(a_map=m, description="Mercator", position="bottomleft")
t = H3TileGridTool(a_map=m, description="H3", position="bottomleft")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10739856801909307, 'fraction_numerical': 0.016706443914081145, 'mean_word_length': 7.39, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '415561', 'license': 'MIT', 'n_tokens_mistral': 280, 'n_tokens_neox': 272, 'n_words': 85, 'path': 'examples/notebooks/tilegrids.ipynb', 'repo_name': 'giswqs/leafmaptools', 'size': '838'}