New Layer#getFeatures method with fast hit detection for VectorLayer
This commit is contained in:
@@ -30,6 +30,16 @@ class LayerRenderer extends Observable {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Asynchronous layer level hit detection.
|
||||
* @param {import("../pixel.js").Pixel} pixel Pixel.
|
||||
* @return {Promise<Array<import("../Feature").default>>} Promise that resolves with
|
||||
* an array of features.
|
||||
*/
|
||||
getFeatures(pixel) {
|
||||
return abstract();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether render should be called.
|
||||
* @abstract
|
||||
|
||||
Reference in New Issue
Block a user