New Layer#getFeatures method with fast hit detection for VectorLayer

This commit is contained in:
Andreas Hocevar
2019-09-26 19:55:14 +02:00
parent 057cc92716
commit 315695eeb8
13 changed files with 429 additions and 31 deletions
+9
View File
@@ -192,6 +192,15 @@ class Layer extends BaseLayer {
this.changed();
}
/**
* @param {import("../pixel").Pixel} pixel Pixel.
* @return {Promise<Array<import("../Feature").default>>} Promise that resolves with
* an array of features.
*/
getFeatures(pixel) {
return this.renderer_.getFeatures(pixel);
}
/**
* In charge to manage the rendering of the layer. One layer type is
* bounded with one layer renderer.