Merge remote-tracking branch 'origin/map_custom_tiles_and_caching' into map_custom_tiles_and_caching

This commit is contained in:
Joshua Pirihi 2022-01-17 14:03:58 +13:00
commit 38977db1bf
2 changed files with 9 additions and 4 deletions

View file

@ -11,7 +11,9 @@ import CoreData
#if canImport(MapKit) && canImport(UIKit)
public struct MapView: UIViewRepresentable {
@Environment(\.managedObjectContext) var context
//@Environment(\.managedObjectContext) var context
var context: NSManagedObjectContext?
//@Binding private var region: MKCoordinateRegion
@ -60,7 +62,8 @@ public struct MapView: UIViewRepresentable {
userLocation: Binding<CLLocationCoordinate2D?> = .constant(nil),
//annotations: [MKPointAnnotation] = [],
//locationNodes: [NodeInfoEntity] = [],
overlays: [Overlay] = []
overlays: [Overlay] = [],
context: NSManagedObjectContext? = nil
) {
//self._region = region