forked from MapComplete/MapComplete
Merge branch 'develop' into feature/android-capacitator
This commit is contained in:
commit
e21a487689
246 changed files with 15167 additions and 5029 deletions
|
|
@ -30,6 +30,9 @@ export default class FilteringFeatureSource implements FeatureSource {
|
|||
upstream.features.addCallback(() => {
|
||||
self.update()
|
||||
})
|
||||
layer.isDisplayed.addCallback(() => {
|
||||
self.update()
|
||||
})
|
||||
|
||||
layer.appliedFilters.forEach((value) =>
|
||||
value.addCallback((_) => {
|
||||
|
|
|
|||
|
|
@ -170,8 +170,12 @@ export class Tag extends TagsFilter {
|
|||
return <any>this
|
||||
}
|
||||
|
||||
/**
|
||||
* new Tag("panoramax", "").isNegative() // => true
|
||||
* new Tag("x","y").isNegative() // => false
|
||||
*/
|
||||
isNegative(): boolean {
|
||||
return false
|
||||
return this.value === ""
|
||||
}
|
||||
|
||||
visit(f: (tagsFilter: TagsFilter) => void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue