jupyter-widgets / ipyleaflet

A Jupyter - Leaflet.js bridge
https://ipyleaflet.readthedocs.io
MIT License
1.47k stars 361 forks source link

PMtiles not showing on map #1161

Open bertcoerver opened 6 months ago

bertcoerver commented 6 months ago

Hello, I'm trying to display a PMTiles on my map (following an example from here) like this:

from ipyleaflet import Map, PMTilesLayer

m = Map(
    center=[33.72946,35.84783], 
    zoom=12, 
    scroll_wheel_zoom=True
    )

m.layout.height = '600px'

pmlayer = PMTilesLayer(
    url = "https://storage.googleapis.com/fao-cog-data/panel_tests/test.pmtiles",

)

m.add(pmlayer)
m

But the layer doesn't show up on my map.

I created the "test.pmtiles" using Tippecanoe (v 2.31.0), the bucket where it's stored also serves COGs, so it should also work for mbtiles I think? Any ideas what I'm doing wrong?