forked from MapComplete/MapComplete
Search: document 'isNormal' in layerconfig; document autofilter-disable option; disable this in favourites, split out the code
This commit is contained in:
parent
5479b81066
commit
8239820d04
5 changed files with 102 additions and 69 deletions
|
|
@ -642,6 +642,10 @@ export default class LayerConfig extends WithContextLoader {
|
|||
return mostShadowed ?? matchingPresets[0]
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if this is a normal layer, meaning that it can be toggled by the user in normal circumstances
|
||||
* Thus: name is set, not a note import layer, not synced with another filter, ...
|
||||
*/
|
||||
public isNormal(){
|
||||
if(this.id.startsWith("note_import")){
|
||||
return false
|
||||
|
|
@ -653,6 +657,9 @@ export default class LayerConfig extends WithContextLoader {
|
|||
if(this.filterIsSameAs !== undefined){
|
||||
return false
|
||||
}
|
||||
if(!this.name ){
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue