carbonplan / maps

interactive multi-dimensional data-driven web maps
https://maps.demo.carbonplan.org
Other
213 stars 18 forks source link

Handle pyramids with single `0` level #103

Open katamartin opened 12 months ago

katamartin commented 12 months ago

When rendering a pyramid with only a single 0 level, it is not properly rescaled to render at when zoom >= 1 unlike the way the level 1 and higher tiles scale in pyramids with multiple levels. This might has to do with the way that offsets are calculated.

See the example behavior and source below: CleanShot 2023-11-28 at 14 54 21

https://carbonplan-data-viewer.s3.amazonaws.com/demo/leap-10-2023/web-mercator_pyramid_tasmax_day_ACCESS-CM2_historical_r1i1p1f1_gn.zarr