fix: 蓝点坐标已是 WGS-84,不再过 toStored

This commit is contained in:
xweiba
2026-08-05 22:40:58 +08:00
parent 2d2ce4f06d
commit 542d74e94f
+2 -3
View File
@@ -675,9 +675,8 @@ struct MapHomeView: View {
guard accepted else { return }
//
mapState.focusSelection(distanceMeters: currentViewport)
CoordinateConverter.updateTileType(lat: coordinate.latitude, lon: coordinate.longitude)
let wgs = CoordinateConverter.toStored(lat: coordinate.latitude, lon: coordinate.longitude)
LastCoordinateStore.save(lat: wgs.lat, lon: wgs.lon)
// WGS-84 toStored
LastCoordinateStore.save(lat: coordinate.latitude, lon: coordinate.longitude)
favorites.select(nil)
scheduleGeocode(coordinate: coordinate, revision: mapState.selection.revision)
}