mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-26 16:41:54 +08:00
fix: 蓝点坐标已是 WGS-84,不再过 toStored
This commit is contained in:
@@ -675,9 +675,8 @@ struct MapHomeView: View {
|
|||||||
guard accepted else { return }
|
guard accepted else { return }
|
||||||
// 用点击时的缩放级别居中,不改变缩放
|
// 用点击时的缩放级别居中,不改变缩放
|
||||||
mapState.focusSelection(distanceMeters: currentViewport)
|
mapState.focusSelection(distanceMeters: currentViewport)
|
||||||
CoordinateConverter.updateTileType(lat: coordinate.latitude, lon: coordinate.longitude)
|
// 蓝点坐标已是 WGS-84,直接存,不需要 toStored
|
||||||
let wgs = CoordinateConverter.toStored(lat: coordinate.latitude, lon: coordinate.longitude)
|
LastCoordinateStore.save(lat: coordinate.latitude, lon: coordinate.longitude)
|
||||||
LastCoordinateStore.save(lat: wgs.lat, lon: wgs.lon)
|
|
||||||
favorites.select(nil)
|
favorites.select(nil)
|
||||||
scheduleGeocode(coordinate: coordinate, revision: mapState.selection.revision)
|
scheduleGeocode(coordinate: coordinate, revision: mapState.selection.revision)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user