Method that copies properties from another object moved to the BaseObject class. Not using getProperties() to avoid creating an intermediate object that is not used later
This commit is contained in:
@@ -69,7 +69,7 @@ class GeometryCollection extends Geometry {
|
||||
clone() {
|
||||
const geometryCollection = new GeometryCollection(null);
|
||||
geometryCollection.setGeometries(this.geometries_);
|
||||
geometryCollection.importPropertiesFrom(this);
|
||||
geometryCollection.applyProperties(this);
|
||||
return geometryCollection;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user