mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-21 22:30:46 +08:00
fix: 瓦片类型用坐标地理边界判断,蓝点直接存不转换
This commit is contained in:
@@ -20,7 +20,7 @@ enum CoordinateConverter {
|
||||
/// 当前地图瓦片坐标系(每次从地图拿到坐标后更新)
|
||||
@MainActor static var currentTileType = CoordType.gcj02
|
||||
|
||||
/// 从地图坐标推算当前瓦片类型并更新全局状态
|
||||
/// 根据坐标的地理位置判断 MKMapView 瓦片类型(中国境内 = GCJ-02,境外 = WGS-84)
|
||||
@MainActor
|
||||
static func updateTileType(lat: Double, lon: Double) {
|
||||
let type = detectType(lat: lat, lon: lon)
|
||||
|
||||
Reference in New Issue
Block a user