forked from MapComplete/MapComplete
Feature(distancePicker): revive geographical distance picker
This commit is contained in:
parent
e997653284
commit
5095bffc50
16 changed files with 245 additions and 107 deletions
|
@ -352,7 +352,7 @@ class LineRenderingLayer {
|
|||
// After waiting 'till the map has loaded, the data might have changed already
|
||||
// As such, we only now read the features from the featureSource and compare with the previously set data
|
||||
const features = featureSource.data
|
||||
if (features.length === 0) {
|
||||
if (!features || features.length === 0) {
|
||||
// This is a very ugly workaround for https://source.mapcomplete.org/MapComplete/MapComplete/issues/2312,
|
||||
// but I couldn't find the root cause
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue