mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
2 seconds was too fast, set peripheral scanning time to 4 seconds
This commit is contained in:
parent
31093f52eb
commit
b1a7f24200
3 changed files with 14 additions and 12 deletions
|
|
@ -331,23 +331,18 @@ public struct MapView: UIViewRepresentable {
|
|||
// Make a fast exit if the annotation is the `MKUserLocation`, as it's not an annotation view we wish to customize.
|
||||
return nil
|
||||
}
|
||||
|
||||
var annotationView: MKAnnotationView?
|
||||
//var annotationView: MKAnnotationView?
|
||||
|
||||
if let annotation = annotation as? PositionAnnotation {
|
||||
let identifier = NSStringFromClass(PositionAnnotationView.self)
|
||||
|
||||
//let annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier) as? PositionAnnotationView ?? PositionAnnotationView()
|
||||
let annotationView = PositionAnnotationView(annotation: annotation, reuseIdentifier: "PositionAnnotation")
|
||||
|
||||
annotationView.name = annotation.shortName ?? "???"
|
||||
|
||||
annotationView.name = annotation.shortName ?? "????"
|
||||
annotationView.canShowCallout = true
|
||||
|
||||
return annotationView
|
||||
}
|
||||
|
||||
return annotationView
|
||||
return nil
|
||||
}
|
||||
|
||||
public func mapView(_ mapView: MKMapView, rendererFor overlay: MKOverlay) -> MKOverlayRenderer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue