Merge pull request #3975 from gberaudo/skip_empty_features_in_webgl_replay
Skip features without geometry during webgl replay
This commit is contained in:
@@ -853,6 +853,7 @@ ol.render.webgl.ImageReplay.prototype.drawHitDetectionReplayOneByOne_ =
|
|||||||
featureUid = goog.getUid(feature).toString();
|
featureUid = goog.getUid(feature).toString();
|
||||||
|
|
||||||
if (!goog.isDef(skippedFeaturesHash[featureUid]) &&
|
if (!goog.isDef(skippedFeaturesHash[featureUid]) &&
|
||||||
|
goog.isDefAndNotNull(feature.getGeometry()) &&
|
||||||
(!goog.isDef(opt_hitExtent) || ol.extent.intersects(
|
(!goog.isDef(opt_hitExtent) || ol.extent.intersects(
|
||||||
opt_hitExtent, feature.getGeometry().getExtent()))) {
|
opt_hitExtent, feature.getGeometry().getExtent()))) {
|
||||||
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
||||||
|
|||||||
Reference in New Issue
Block a user