Rename forEachGeometryAtPixel
This commit is contained in:
@@ -1866,7 +1866,7 @@ ol.render.canvas.ReplayGroup.prototype.finish = function() {
|
||||
* @return {T|undefined} Callback result.
|
||||
* @template T
|
||||
*/
|
||||
ol.render.canvas.ReplayGroup.prototype.forEachGeometryAtPixel = function(
|
||||
ol.render.canvas.ReplayGroup.prototype.forEachFeatureAtPixel = function(
|
||||
resolution, rotation, coordinate, skippedFeaturesHash, callback) {
|
||||
|
||||
var transform = this.hitDetectionTransform_;
|
||||
|
||||
@@ -126,7 +126,7 @@ ol.renderer.canvas.VectorLayer.prototype.forEachFeatureAtPixel =
|
||||
var layer = this.getLayer();
|
||||
/** @type {Object.<string, boolean>} */
|
||||
var features = {};
|
||||
return this.replayGroup_.forEachGeometryAtPixel(resolution,
|
||||
return this.replayGroup_.forEachFeatureAtPixel(resolution,
|
||||
rotation, coordinate, frameState.skippedFeatureUids,
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
|
||||
@@ -186,7 +186,7 @@ ol.renderer.dom.VectorLayer.prototype.forEachFeatureAtPixel =
|
||||
var layer = this.getLayer();
|
||||
/** @type {Object.<string, boolean>} */
|
||||
var features = {};
|
||||
return this.replayGroup_.forEachGeometryAtPixel(resolution,
|
||||
return this.replayGroup_.forEachFeatureAtPixel(resolution,
|
||||
rotation, coordinate, frameState.skippedFeatureUids,
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
|
||||
@@ -131,7 +131,7 @@ ol.renderer.Map.prototype.forEachFeatureAtPixel =
|
||||
if (!goog.isNull(this.replayGroup)) {
|
||||
/** @type {Object.<string, boolean>} */
|
||||
var features = {};
|
||||
result = this.replayGroup.forEachGeometryAtPixel(viewResolution,
|
||||
result = this.replayGroup.forEachFeatureAtPixel(viewResolution,
|
||||
viewRotation, coordinate, {},
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
|
||||
@@ -159,7 +159,7 @@ ol.source.ImageVector.prototype.forEachFeatureAtPixel = function(
|
||||
} else {
|
||||
/** @type {Object.<string, boolean>} */
|
||||
var features = {};
|
||||
return this.replayGroup_.forEachGeometryAtPixel(
|
||||
return this.replayGroup_.forEachFeatureAtPixel(
|
||||
resolution, 0, coordinate, skippedFeatureUids,
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
|
||||
@@ -70,7 +70,7 @@ describe('ol.renderer.canvas.VectorLayer', function() {
|
||||
map.getRenderer(), layer);
|
||||
var replayGroup = {};
|
||||
renderer.replayGroup_ = replayGroup;
|
||||
replayGroup.forEachGeometryAtPixel = function(resolution,
|
||||
replayGroup.forEachFeatureAtPixel = function(resolution,
|
||||
rotation, coordinate, skippedFeaturesUids, callback) {
|
||||
var geometry = new ol.geom.Point([0, 0]);
|
||||
var feature = new ol.Feature();
|
||||
|
||||
Reference in New Issue
Block a user