mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Add definition for method getFeaturesAtPixel
This commit is contained in:
12
types/openlayers/index.d.ts
vendored
12
types/openlayers/index.d.ts
vendored
@@ -6771,6 +6771,18 @@ declare module ol {
|
||||
opt_options?: olx.AtPixelOptions
|
||||
): (T);
|
||||
|
||||
/**
|
||||
* Get all features that intersect a pixel on the viewport.
|
||||
* @param {ol.Pixel} pixel Pixel.
|
||||
* @param {olx.AtPixelOptions=} opt_options Optional options.
|
||||
* @return {?Array.<(ol.Feature|ol.render.Feature)>} The detected features or null if none were found.
|
||||
* @api stable
|
||||
*/
|
||||
getFeaturesAtPixel(
|
||||
pixel: ol.Pixel,
|
||||
opt_options?: olx.AtPixelOptions
|
||||
): (Array<ol.Feature|ol.render.Feature>|null);
|
||||
|
||||
/**
|
||||
* Detect layers that have a color value at a pixel on the viewport, and
|
||||
* execute a callback with each matching layer. Layers included in the
|
||||
|
||||
Reference in New Issue
Block a user