hongfaqiu / TIFFImageryProvider

Load GeoTIFF/COG(Cloud optimized GeoTIFF) on Cesium
https://tiff-imagery-provider.opendde.com/?panel=layer
MIT License
70 stars 14 forks source link

Reduce canvas width for Firefox WebGL support #32

Closed TheMrCam closed 4 months ago

TheMrCam commented 4 months ago

Overview

Reduces the plotty canvas width to 8192, the maximum limit for Firefox's WebGL implementation.

With the current value of 10000--while using Firefox--TIFFs render every pixel value as black. There are no visible issues in Safari or Microsoft Edge, with max texture size of 16384.

This change resolves #31, see that issue for more details.

Side effects?

Disclaimer: I did not check for wide-reaching side effects (in any browser) after making this change, just that the color showed up as expected in Firefox.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tiff-imagery-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 2:17pm
hongfaqiu commented 4 months ago

@TheMrCam Thank you, this is the first PR for this repository. A new version that fixes this issue has been released.