Updates for the 6.13.0 release

This commit is contained in:
Andreas Hocevar
2022-02-27 17:35:57 +01:00
parent b15318b6bb
commit 7bf014f747
4 changed files with 144 additions and 3 deletions
+2
View File
@@ -2,6 +2,8 @@
### Next
### v6.13.0
#### New `layer.getData()` method
Raster layers (static images, image tiles, data tiles) have a new `layer.getData(pixel)` method that returns the pixel data at the provided location. The return value depends on the underlying source data type. For example, a GeoTIFF may return a `Float32Array` with one value per band, while a PNG rendered from a tile layer will return a `Uint8ClampedArray` of RGBA values.