kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
rodzic
5b3c78316b
commit
8e40c84c0d
|
@ -475,7 +475,7 @@ fun MapView(
|
|||
// }
|
||||
|
||||
fun MapView.zoomToNodes() {
|
||||
val nodeMarkers = onNodesChanged(nodes)
|
||||
val nodeMarkers = onNodesChanged(model.nodeDB.nodesByNum.values)
|
||||
if (nodeMarkers.isNotEmpty()) {
|
||||
val box = BoundingBox.fromGeoPoints(nodeMarkers.map { it.position })
|
||||
val center = GeoPoint(box.centerLatitude, box.centerLongitude)
|
||||
|
|
Ładowanie…
Reference in New Issue