Rename forEachGeometryAtPixel

This commit is contained in:
tsauerwein
2015-01-23 15:07:02 +01:00
parent 9e7e5efd27
commit 7feb8b22f6
6 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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();