Make signature for *AtPixel methods more consistent
pixel/coordinate is the first argument.
This commit is contained in:
@@ -153,14 +153,14 @@ ol.source.ImageVector.prototype.canvasFunctionInternal_ =
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.ImageVector.prototype.forEachFeatureAtPixel = function(
|
||||
resolution, rotation, coordinate, skippedFeatureUids, callback) {
|
||||
coordinate, resolution, rotation, skippedFeatureUids, callback) {
|
||||
if (goog.isNull(this.replayGroup_)) {
|
||||
return undefined;
|
||||
} else {
|
||||
/** @type {Object.<string, boolean>} */
|
||||
var features = {};
|
||||
return this.replayGroup_.forEachFeatureAtPixel(
|
||||
resolution, 0, coordinate, skippedFeatureUids,
|
||||
coordinate, resolution, 0, skippedFeatureUids,
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
* @return {?} Callback result.
|
||||
|
||||
@@ -77,9 +77,9 @@ goog.inherits(ol.source.Source, ol.Observable);
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Coordinate} coordinate Coordinate.
|
||||
* @param {number} resolution Resolution.
|
||||
* @param {number} rotation Rotation.
|
||||
* @param {ol.Coordinate} coordinate Coordinate.
|
||||
* @param {Object.<string, boolean>} skippedFeatureUids Skipped feature uids.
|
||||
* @param {function(ol.Feature): T} callback Feature callback.
|
||||
* @return {T|undefined} Callback result.
|
||||
|
||||
Reference in New Issue
Block a user