mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Use location manager to show user location on the map
This commit is contained in:
parent
54f160eab2
commit
6d90211ab5
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ struct NodeMap: View {
|
|||
|
||||
@State private var showUserLocation: Bool = true
|
||||
@State private var userTrackingMode: MKUserTrackingMode = MKUserTrackingMode.none
|
||||
@State private var userLocation: CLLocationCoordinate2D?
|
||||
@State private var userLocation: CLLocationCoordinate2D? = LocationHelper.currentLocation
|
||||
|
||||
@State private var showAnnotations: Bool = true
|
||||
@State private var annotations: [MKPointAnnotation] = []
|
||||
|
|
@ -84,7 +84,7 @@ struct NodeMap: View {
|
|||
|
||||
var body: some View {
|
||||
|
||||
//let location = LocationHelper.currentLocation
|
||||
//self.$userLocation = LocationHelper.currentLocation
|
||||
|
||||
NavigationView {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue