Removed usage of private property
This commit is contained in:
@@ -225,7 +225,7 @@ var modify = new ol.interaction.Modify({
|
|||||||
style: overlayStyle,
|
style: overlayStyle,
|
||||||
insertVertexCondition: function() {
|
insertVertexCondition: function() {
|
||||||
// prevent new vertices to be added to the polygons
|
// 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/);
|
return feature.getGeometry().getType().match(/Polygon/);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user