Add hit-detection support for webgl

This commit is contained in:
tsauerwein
2014-12-18 13:21:20 +01:00
parent 740420468e
commit 3ef61fa1c5
4 changed files with 293 additions and 21 deletions

View File

@@ -1951,6 +1951,8 @@ ol.render.canvas.ReplayGroup.prototype.replay = function(
var zs = goog.array.map(goog.object.getKeys(this.replaysByZIndex_), Number);
goog.array.sort(zs);
// setup clipping so that the parts of over-simplified geometries are not
// visible outside the current extent when panning
var maxExtent = this.maxExtent_;
var minX = maxExtent[0];
var minY = maxExtent[1];