Remove extra parameters
This commit is contained in:
@@ -104,7 +104,6 @@ class LayerGroup extends BaseLayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {import("../events/Event.js").default} event Event.
|
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
handleLayersChanged_() {
|
handleLayersChanged_() {
|
||||||
|
|||||||
@@ -59,10 +59,9 @@ class LayerRenderer extends Observable {
|
|||||||
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
||||||
* @param {import("../PluggableMap.js").FrameState} frameState Frame state.
|
* @param {import("../PluggableMap.js").FrameState} frameState Frame state.
|
||||||
* @param {number} hitTolerance Hit tolerance in pixels.
|
* @param {number} hitTolerance Hit tolerance in pixels.
|
||||||
* @param {function(this: S, (import("../Feature.js").default|import("../render/Feature.js").default), import("../layer/Layer.js").default): T} callback Feature callback.
|
* @param {function((import("../Feature.js").default|import("../render/Feature.js").default), import("../layer/Layer.js").default): T} callback Feature callback.
|
||||||
* @param {S} thisArg Value to use as `this` when executing `callback`.
|
|
||||||
* @return {T|void} Callback result.
|
* @return {T|void} Callback result.
|
||||||
* @template S,T
|
* @template T
|
||||||
*/
|
*/
|
||||||
forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, callback) {}
|
forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, callback) {}
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class MapRenderer extends Disposable {
|
|||||||
if (layer.getSource()) {
|
if (layer.getSource()) {
|
||||||
result = layerRenderer.forEachFeatureAtCoordinate(
|
result = layerRenderer.forEachFeatureAtCoordinate(
|
||||||
layer.getSource().getWrapX() ? translatedCoordinate : coordinate,
|
layer.getSource().getWrapX() ? translatedCoordinate : coordinate,
|
||||||
frameState, hitTolerance, forEachFeatureAtCoordinate, thisArg);
|
frameState, hitTolerance, forEachFeatureAtCoordinate);
|
||||||
}
|
}
|
||||||
if (result) {
|
if (result) {
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class CanvasLayerRenderer extends LayerRenderer {
|
|||||||
* @template S,T,U
|
* @template S,T,U
|
||||||
*/
|
*/
|
||||||
forEachLayerAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg) {
|
forEachLayerAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg) {
|
||||||
const hasFeature = this.forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, TRUE, this);
|
const hasFeature = this.forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, TRUE);
|
||||||
|
|
||||||
if (hasFeature) {
|
if (hasFeature) {
|
||||||
return callback.call(thisArg, this.getLayer(), null);
|
return callback.call(thisArg, this.getLayer(), null);
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ class WebGLMapRenderer extends MapRenderer {
|
|||||||
layerFilter.call(thisArg2, layer)) {
|
layerFilter.call(thisArg2, layer)) {
|
||||||
const layerRenderer = this.getLayerRenderer(layer);
|
const layerRenderer = this.getLayerRenderer(layer);
|
||||||
result = layerRenderer.forEachFeatureAtCoordinate(
|
result = layerRenderer.forEachFeatureAtCoordinate(
|
||||||
coordinate, frameState, hitTolerance, callback, thisArg);
|
coordinate, frameState, hitTolerance, callback);
|
||||||
if (result) {
|
if (result) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user