forked from MapComplete/MapComplete
Refactoring: Load availableMVTVectorLayers dynamically
This commit is contained in:
parent
2b3e3257fd
commit
a50c6b531e
14 changed files with 115 additions and 68 deletions
|
@ -35,7 +35,7 @@ export class WithChangesState extends WithLayoutSourceState {
|
|||
*/
|
||||
readonly hasDataInView: Store<FeatureViewState>
|
||||
|
||||
constructor(theme: ThemeConfig, mvtAvailableLayers: Set<string>) {
|
||||
constructor(theme: ThemeConfig, mvtAvailableLayers: Store<Set<string>>) {
|
||||
super(theme, mvtAvailableLayers)
|
||||
this.changes = new Changes(
|
||||
{
|
||||
|
@ -82,7 +82,7 @@ export class WithChangesState extends WithLayoutSourceState {
|
|||
this.perLayerFiltered = this.showNormalDataOn(this.map)
|
||||
|
||||
this.hasDataInView = new NoElementsInViewDetector(this).hasFeatureInView
|
||||
|
||||
|
||||
this.toCacheSavers = theme.enableCache ? this.initSaveToLocalStorage() : undefined
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue