Don't dispatch change events when reading features

Based on initial work by https://github.com/Jinkwon
This commit is contained in:
Frederic Junod
2019-01-15 09:00:46 +01:00
parent aa0bc8175b
commit 787fd4aa44
8 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ class OSMXML extends XMLFeature {
transformGeometryWithOptions(geometry, false, options);
const feature = new Feature(geometry);
feature.setId(values.id);
feature.setProperties(values.tags);
feature.setProperties(values.tags, true);
state.features.push(feature);
}
if (state.features) {
@@ -137,7 +137,7 @@ function readNode(node, objectStack) {
transformGeometryWithOptions(geometry, false, options);
const feature = new Feature(geometry);
feature.setId(id);
feature.setProperties(values.tags);
feature.setProperties(values.tags, true);
state.features.push(feature);
}
}