forked from MapComplete/MapComplete
Re-enable osm source in all cases, fix #1798
This commit is contained in:
parent
c6a69b35cd
commit
760276922d
3 changed files with 24 additions and 24 deletions
|
@ -87,6 +87,7 @@
|
|||
if (snapToLayers?.length > 0) {
|
||||
const snapSources: FeatureSource[] = []
|
||||
for (const layerId of snapToLayers ?? []) {
|
||||
// We assume that the layer contains the data, as the OSM-API-Feature-source should have loaded them, even though the layer might not be displayed
|
||||
const layer: FeatureSourceForLayer = state.perLayer.get(layerId)
|
||||
snapSources.push(layer)
|
||||
if (layer.features === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue