forked from MapComplete/MapComplete
Add 'export as GPX'-feature, fix #276
This commit is contained in:
parent
91fe29cfdd
commit
e8ce53d5eb
9 changed files with 308 additions and 79 deletions
|
@ -300,5 +300,17 @@ export default class LayoutConfig {
|
|||
public isLeftRightSensitive() {
|
||||
return this.layers.some(l => l.isLeftRightSensitive())
|
||||
}
|
||||
|
||||
public getMatchingLayer(tags: any) : LayerConfig | undefined{
|
||||
if(tags === undefined){
|
||||
return undefined
|
||||
}
|
||||
for (const layer of this.layers) {
|
||||
if (layer.source.osmTags.matchesProperties(tags)) {
|
||||
return layer
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue