fix: 瓦片类型用坐标地理边界判断,蓝点直接存不转换

This commit is contained in:
xweiba
2026-08-05 22:44:02 +08:00
parent 542d74e94f
commit f9b137b0f7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ struct MapViewRepresentable: UIViewRepresentable {
parent.onViewportChanged(distance)
zoomLabel?.text = MapZoomMath.viewportScaleLabel(distanceMeters: distance)
updatePinPosition(on: mapView)
//
// =GCJ-02=WGS-84
let c = mapView.centerCoordinate
CoordinateConverter.updateTileType(lat: c.latitude, lon: c.longitude)
// delegate mapState.realtimeLocation nil
+1 -1
View File
@@ -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)