forked from MapComplete/MapComplete
Performance optimazations
This commit is contained in:
parent
632e7e9f9a
commit
d2b245ab54
15 changed files with 321 additions and 214 deletions
|
@ -59,7 +59,7 @@ export class GeoOperations {
|
|||
const coor = feature.geometry.coordinates;
|
||||
for (const otherFeature of otherFeatures) {
|
||||
|
||||
if (feature.id !== undefined && feature.id === otherFeature.id) {
|
||||
if (feature.properties.id !== undefined && feature.properties.id === otherFeature.properties.id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ export class GeoOperations {
|
|||
|
||||
for (const otherFeature of otherFeatures) {
|
||||
|
||||
if (feature.id !== undefined && feature.id === otherFeature.id) {
|
||||
if (feature.properties.id !== undefined && feature.properties.id === otherFeature.properties.id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ export class GeoOperations {
|
|||
|
||||
for (const otherFeature of otherFeatures) {
|
||||
|
||||
if (feature.id === otherFeature.id) {
|
||||
if (feature.properties.id !== undefined && feature.properties.id === otherFeature.properties.id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue