Allow geometryFunction to return undefined

This commit is contained in:
Andreas Hocevar
2014-12-16 01:12:08 +01:00
parent 6478454a93
commit af30b88413
5 changed files with 12 additions and 13 deletions

View File

@@ -124,7 +124,7 @@ ol.renderer.vector.renderFeature = function(
ol.renderer.vector.renderFeature_ = function(
replayGroup, feature, style, squaredTolerance) {
var geometry = style.getGeometryFunction()(feature);
if (goog.isNull(geometry)) {
if (!goog.isDefAndNotNull(geometry)) {
return;
}
var simplifiedGeometry = geometry.getSimplifiedGeometry(squaredTolerance);