Merge pull request #9966 from jahow/allow-disable-canvas-reuse

Document how to circumvent the canvas reuse optimization
This commit is contained in:
Olivier Guyot
2019-09-24 11:16:45 +02:00
committed by GitHub
9 changed files with 33 additions and 0 deletions

View File

@@ -587,6 +587,10 @@ class PluggableMap extends BaseObject {
* 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
* detection can be configured through `opt_layerFilter`.
*
* Note: this may give false positives unless the map layers have had different `className`
* properties assigned to them.
*
* @param {import("./pixel.js").Pixel} pixel Pixel.
* @param {function(this: S, import("./layer/Layer.js").default, (Uint8ClampedArray|Uint8Array)): T} callback
* Layer callback. This callback will receive two arguments: first is the