forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
8ef7af613f
commit
00151afdea
114 changed files with 2857 additions and 2135 deletions
|
@ -210,7 +210,11 @@ export default class FilteredLayer {
|
|||
* - the specified 'global filters'
|
||||
* - the 'isShown'-filter set by the layer
|
||||
*/
|
||||
public isShown(properties: Record<string, string>, globalFilters?: GlobalFilter[], zoomlevel?: number): boolean {
|
||||
public isShown(
|
||||
properties: Record<string, string>,
|
||||
globalFilters?: GlobalFilter[],
|
||||
zoomlevel?: number
|
||||
): boolean {
|
||||
if (properties._deleted === "yes") {
|
||||
return false
|
||||
}
|
||||
|
@ -219,7 +223,7 @@ export default class FilteredLayer {
|
|||
if (neededTags !== undefined) {
|
||||
const doesMatch = neededTags.matchesProperties(properties)
|
||||
if (globalFilter.forceShowOnMatch) {
|
||||
if(doesMatch){
|
||||
if (doesMatch) {
|
||||
return true
|
||||
}
|
||||
} else if (!doesMatch) {
|
||||
|
@ -241,7 +245,10 @@ export default class FilteredLayer {
|
|||
}
|
||||
}
|
||||
|
||||
if(zoomlevel !== undefined && (this.layerDef.minzoom > zoomlevel || this.layerDef.minzoomVisible < zoomlevel)){
|
||||
if (
|
||||
zoomlevel !== undefined &&
|
||||
(this.layerDef.minzoom > zoomlevel || this.layerDef.minzoomVisible < zoomlevel)
|
||||
) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue