Skip to content

Invalid Zoom for TileLayer in version 0.19.0 #2043

Closed
@pmd84

Description

@pmd84

I'm using a tiling endpoint based of TiTiler to serve map tiles on Folium. Since the upgrade last night, the tiles no longer render, and my tiling endpoint gives me this error: "Invalid ZOOM level 0", and the tile request is showing as "tiles/WebMercatorQuad/0/0/0"

geom = shape(AOI)
centroid = geom.centroid

m = folium.Map(location=[centroid.y, centroid.x], zoom_start=12)

# Initialize Tile Layer and add to map
TileLayer(
    tiles=tilejson["tiles"][0],
    opacity=1,
    min_zoom=8,
    max_zoom=14,
    attr="Sentinel-2 COG",
).add_to(m)

folium.GeoJson(AOI).add_to(m)

m

Typically, the folium map generates tile at whatever x, y, z are visible on the map. Only this single 0,0,0 tile is being requested.

Environment is in a Databricks notebook with Folium 0.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue describing unexpected or malicious behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions