GeoTIFF / georaster-layer-for-leaflet

Display GeoTIFFs and soon other types of raster on your Leaflet Map
https://geotiff.github.io/georaster-layer-for-leaflet-example/
Apache License 2.0
284 stars 57 forks source link

reduce raster pixel aliasing at high zoom levels #78

Closed jcphill closed 2 years ago

jcphill commented 2 years ago

If the number of samples is limited to the number of raster pixels intersecting a tile, then at high zoom levels some neighboring pixels will both sample the same raster pixel, with this aliasing resulting in very visible doubled pixels. Increasing the maximum number of samples by a factor of three in each dimension reduces this effect as the doubled samples are a third of the raster pixel size. The only performance impact is at high zoom levels where doubled pixels would otherwise be visible, and performance is still no worse than at low zoom levels.

jcphill commented 2 years ago

Should fix #62

DanielJDufour commented 2 years ago

Awesome work. Thank you so much for figuring this out! :-)