New Layer#getFeatures method with fast hit detection for VectorLayer
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user