forked from MapComplete/MapComplete
Formatting and small cleanups
This commit is contained in:
parent
15a6794e59
commit
4342b38e9d
8 changed files with 40 additions and 37 deletions
|
@ -27,7 +27,9 @@ export default class ShowDataLayer {
|
|||
|
||||
layoutToUse.addCallbackAndRun(layoutToUse => {
|
||||
for (const layer of layoutToUse.layers) {
|
||||
self._layerDict[layer.id] = layer;
|
||||
if (self._layerDict[layer.id] === undefined) {
|
||||
self._layerDict[layer.id] = layer;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue