fix: prevent crash if no geopath is provided
This commit is contained in:
parent
515beefca6
commit
b6deb30fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -147,8 +147,8 @@ fun App() {
|
||||||
polylines.add(Polyline(polyline, colour))
|
polylines.add(Polyline(polyline, colour))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val bounds = buildBounds(allPoints)
|
if (allPoints.isNotEmpty())
|
||||||
newCameraPosition = Pair(Point(0.0, 0.0), bounds)
|
newCameraPosition = Pair(Point(0.0, 0.0), buildBounds(allPoints))
|
||||||
}
|
}
|
||||||
|
|
||||||
var sheetSwipeEnabled by remember { mutableStateOf(true) }
|
var sheetSwipeEnabled by remember { mutableStateOf(true) }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue