mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
pass data properly
This commit is contained in:
parent
5da1b80076
commit
8812ef4c11
1 changed files with 1 additions and 4 deletions
|
|
@ -131,7 +131,7 @@ class MapDataManager: ObservableObject {
|
|||
let uploadDate = fileAttributes.creationDate ?? Date()
|
||||
|
||||
// Read and process file content on background queue
|
||||
let (_, overlayCount) = try await withCheckedThrowingContinuation { continuation in
|
||||
let (data, overlayCount) = try await withCheckedThrowingContinuation { continuation in
|
||||
Task.detached {
|
||||
do {
|
||||
let data = try Data(contentsOf: url)
|
||||
|
|
@ -162,9 +162,6 @@ class MapDataManager: ObservableObject {
|
|||
let geometryType = geometry["type"] as? String else {
|
||||
throw NSError(domain: "MapDataManager", code: 3, userInfo: [NSLocalizedDescriptionKey: "Invalid feature structure in GeoJSON"])
|
||||
}
|
||||
|
||||
// Validate coordinates based on geometry type
|
||||
try validateCoordinates(coordinates, for: geometryType)
|
||||
}
|
||||
|
||||
// If this is the first file uploaded, make it active by default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue