Add definition for method getFeaturesAtPixel

This commit is contained in:
stonio
2017-08-28 18:31:39 +02:00
committed by GitHub
parent 92d393285c
commit f42342f002

View File

@@ -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