You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ipyleaflet doesn't pass through information on non-square tiles and a previous node suggests that they didn't work as expected directly in leaflet anyway. When using non-square tiles in leaflet or ipyleaflet, we could use region requests instead of tile requests.
The text was updated successfully, but these errors were encountered:
As a work-around in Jupyter notebooks, instead of source = large_image.open('non-square-tiles.tif'), you can do source = large_image.open({"sources": [{"path": 'non-square-tiles.tif'}], "tileWidth": 256, "tileHeight": 256}).
One way to do this would be to have a getSquareTile method that would take the same parameters as getTile plus a singular size value and would call getRegion with appropriate parameters to actually produce the data. When exposing endpoints, it would be useful to have tiles/:size and tiles/:size/zxy/... endpoints that would return the metadata as if the specified tile size was native and the size tiles. If the size was the native size of the source, it should just redirect to the unsized versions.
ipyleaflet doesn't pass through information on non-square tiles and a previous node suggests that they didn't work as expected directly in leaflet anyway. When using non-square tiles in leaflet or ipyleaflet, we could use region requests instead of tile requests.
The text was updated successfully, but these errors were encountered: