Black tiles with DataTileSource and WebGLTileLayer
See original GitHub issueDescribe the bug
Theol.layer.WebGLTile
doesn’t render data that were loaded with ol.source.DataTile
using a custom tile grid:
Extent: [0, -23828, 23903, 0]
Sizes: [[1, 1], [7, 7], [ 25, 25 ], [100, 100]]
Tile sizes: [[770, 768], [240, 240], [240, 240], [240, 240]]
The following warning message gets logged:
WebGL warning: texImage: Desired upload requires more data than is available: (767 rows plus 770 pixels needed, 767 rows plus 258 pixels available)
I didn’t previously experience this issue and wonder whether it may be due to either https://github.com/openlayers/openlayers/pull/11532 or https://github.com/openlayers/openlayers/pull/12024.
Expected behavior
Not sure whether this is a bug or whether my understanding of the tile grid is wrong.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
WebGL Tile Layer Styles - OpenLayers
Styling raster tiles with WebGL. The style property of a WebGL tile layer can be used to adjust properties like exposure , contrast...
Read more >Layer Swipe implementation for TileLayer and WebGLTIleLayer
I need to make it work for a mix of N Tile and WebGLTile layers. When combining them, it seems like the WebGLTile...
Read more >Geowebcache pre-seed creates white and black tiles
I have created cached tiles using geoWebcache pre-seeding. ... Can anybody suggest why GWC creates white and black tiles and how to fix...
Read more >ol-webgl-tile-layer - Vue3 OpenLayers
ol-webgl-tile-layer. This example uses WebGL to raster tiles on a map. # Usage.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That option appears to be used only for defining styles. An
unpackAlignment
option (with default of 1?) would be useful to ensure the calculation ofbandCount
forTileTexture
corresponds to thegl.pixelStorei
setting.@mike-000 It works!