Webgl points / read only one pixel for feature hit detection

Also implements `hasFeatureAtCoordinate`.

`hitTolerance` is not supported for now.
This commit is contained in:
Olivier Guyot
2019-06-06 11:38:59 +02:00
parent e852294938
commit 28b99767f8
4 changed files with 83 additions and 9 deletions
+1
View File
@@ -118,6 +118,7 @@ class WebGLRenderTarget {
* @param {number} x Pixel coordinate
* @param {number} y Pixel coordinate
* @returns {Uint8Array} Integer array with one color value (4 components)
* @api
*/
readPixel(x, y) {
this.readAll();