Skip to content

Commit

Permalink
fix(arcgis): Preserved layer status in case of concurent layer loads …
Browse files Browse the repository at this point in the history
…from the same url

Second load would include layers from first etc, fixed now
  • Loading branch information
FilipLeitner authored and jmacura committed Nov 26, 2024
1 parent c5004d6 commit b5d1a11
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions projects/hslayers/services/add-data/common.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ export class HsAddDataCommonService {
//TODO: If Layman allows layers with different casing,
// then remove the case lowering
const layerName = nameOrTitle
? layer.Name?.toLowerCase() ?? layer.Title?.toLowerCase()
? (layer.Name?.toLowerCase() ??
layer.name?.toLowerCase() ??
layer.Title?.toLowerCase() ??
layer.title?.toLowerCase())
: layer.Identifier?.toLowerCase();
if (layerName === this.layerToSelect.toLowerCase()) {
layer.checked = true;
}
//Checks selected layer or uncheck if status carried from previous process
layer.checked = layerName === this.layerToSelect.toLowerCase();
}
}

Expand Down

0 comments on commit b5d1a11

Please sign in to comment.