Removed usage of private property

This commit is contained in:
Simon Seyock
2017-07-03 11:43:11 +02:00
committed by GitHub
parent f88d8b8a7d
commit 5063f4d868

View File

@@ -225,7 +225,7 @@ var modify = new ol.interaction.Modify({
style: overlayStyle,
insertVertexCondition: function() {
// prevent new vertices to be added to the polygons
return !this.features_.getArray().every(function(feature) {
return !select.getFeatures().getArray().every(function(feature) {
return feature.getGeometry().getType().match(/Polygon/);
});
}