<jupyter_start><jupyter_text>ImageTileProviderImageTileProvider is used to add TileLayer from tile services provided by XYZ tile servers or WMTS servers. Warning: Before running below cells please make sure you have API key.                 Please see README.md for more info on API key.  XYZ TileLayer<jupyter_code>import os

os.environ["LS_API_KEY"] = "MY-API-KEY"  # replace your API key here.
from here_map_widget import Map, ImageTileProvider, TileLayer, ZoomControl


m = Map(api_key=os.environ["LS_API_KEY"], center=[39.40, -104.08], zoom=3)

url = "https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution = 'Map data (c) <a href="https://openstreetmap.org">OpenStreetMap</a> contributors'
provider = ImageTileProvider(url=url, attribution=attribution)
layer = TileLayer(provider=provider)
m.add_layer(layer)
zc = ZoomControl(alignment="LEFT_TOP")
m.add_control(zc)
m<jupyter_output><empty_output><jupyter_text>WMTS TileLayer<jupyter_code>import os
from here_map_widget import Map, ImageTileProvider, TileLayer, ZoomControl


m = Map(api_key=os.environ["LS_API_KEY"], center=[39.40, -104.08], zoom=3.66)

url = "https://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_Population_Density/MapServer/WMTS/?layer=0&style=default&tilematrixset=EPSG%3A4326&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}"
provider = ImageTileProvider(url=url)
layer = TileLayer(provider=provider)
m.add_layer(layer)
zc = ZoomControl(alignment="LEFT_TOP")
m.add_control(zc)
m<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.020460358056265986, 'mean_word_length': 7.2368421052631575, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 3, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '90479', 'license': 'MIT', 'n_tokens_mistral': 587, 'n_tokens_neox': 556, 'n_words': 104, 'path': 'examples/image_tile_layer.ipynb', 'repo_name': 'heremaps/here-map-widget-for-jupyter', 'size': '1564'}