Unconditionally draw Replay's

This commit is contained in:
Éric Lemoine
2014-12-18 12:27:06 +01:00
parent cd0bed6291
commit ddc51ee267
14 changed files with 29 additions and 88 deletions

View File

@@ -141,8 +141,7 @@ ol.source.ImageVector.prototype.canvasFunctionInternal_ =
var transform = this.getTransform_(ol.extent.getCenter(extent),
resolution, pixelRatio, size);
replayGroup.replay(this.canvasContext_, extent, pixelRatio, transform, 0,
{});
replayGroup.replay(this.canvasContext_, pixelRatio, transform, 0, {});
this.replayGroup_ = replayGroup;
@@ -154,14 +153,14 @@ ol.source.ImageVector.prototype.canvasFunctionInternal_ =
* @inheritDoc
*/
ol.source.ImageVector.prototype.forEachFeatureAtPixel = function(
extent, resolution, rotation, coordinate, skippedFeatureUids, callback) {
resolution, rotation, coordinate, skippedFeatureUids, callback) {
if (goog.isNull(this.replayGroup_)) {
return undefined;
} else {
/** @type {Object.<string, boolean>} */
var features = {};
return this.replayGroup_.forEachGeometryAtPixel(
extent, resolution, 0, coordinate, skippedFeatureUids,
resolution, 0, coordinate, skippedFeatureUids,
/**
* @param {ol.Feature} feature Feature.
* @return {?} Callback result.