Creating an object that stores properties only when needed in BaseObject class
This commit is contained in:
+3
-1
@@ -128,7 +128,9 @@ class Feature extends BaseObject {
|
||||
* @api
|
||||
*/
|
||||
clone() {
|
||||
const clone = new Feature(this.getProperties());
|
||||
const clone = new Feature(
|
||||
this.hasProperties() ? this.getProperties() : undefined
|
||||
);
|
||||
clone.setGeometryName(this.getGeometryName());
|
||||
const geometry = this.getGeometry();
|
||||
if (geometry) {
|
||||
|
||||
Reference in New Issue
Block a user