forked from MapComplete/MapComplete
Refactoring: introduce 'isPrivileged'
This commit is contained in:
parent
6ca055cf28
commit
f405116bb1
11 changed files with 29 additions and 28 deletions
|
|
@ -23,7 +23,7 @@ export class SummaryTileSourceRewriter implements FeatureSource {
|
|||
filteredLayers: ReadonlyMap<string, FilteredLayer>
|
||||
) {
|
||||
this.filteredLayers = Array.from(filteredLayers.values()).filter(
|
||||
(l) => Constants.priviliged_layers.indexOf(<any>l.layerDef.id) < 0
|
||||
(l) => !Constants.isPriviliged(l.layerDef)
|
||||
)
|
||||
this._summarySource = summarySource
|
||||
filteredLayers.forEach((v) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue