Fix compiler type errors

This commit is contained in:
tsauerwein
2014-08-11 14:04:31 +02:00
parent 3ff180b224
commit 294afe16fe
4 changed files with 20 additions and 15 deletions
+5 -2
View File
@@ -271,8 +271,11 @@ ol.format.XMLFeature.transformFeaturesWithOptions = function(
}
goog.array.forEach(features, function(feature) {
feature.setGeometry(ol.format.Feature.transformWithOptions(
feature.getGeometry(), write, false, opt_options));
var geom = feature.getGeometry();
if (goog.isDef(geom)) {
feature.setGeometry(ol.format.Feature.transformWithOptions(
geom, write, false, opt_options));
}
});
}
return features;