mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Hook up emoji to annotations
This commit is contained in:
parent
c023ede407
commit
a98bd6ad99
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,6 @@ struct MapViewSwiftUI: UIViewRepresentable {
|
|||
if let overlay = LocalMBTileOverlay(mbTilePath: tilePath) {
|
||||
|
||||
overlay.canReplaceMapContent = false//customMapOverlay.canReplaceMapContent
|
||||
|
||||
mapView.addOverlay(overlay)
|
||||
}
|
||||
} else {
|
||||
|
|
@ -164,9 +163,10 @@ struct MapViewSwiftUI: UIViewRepresentable {
|
|||
let annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: "waypoint") as? MKMarkerAnnotationView ?? MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: "Waypoint")
|
||||
annotationView.canShowCallout = true
|
||||
if waypointAnnotation.icon == 0 {
|
||||
print(waypointAnnotation.icon)
|
||||
annotationView.glyphText = "🪧"
|
||||
} else {
|
||||
|
||||
annotationView.glyphText = String(UnicodeScalar(Int(waypointAnnotation.icon)) ?? "🪧")
|
||||
}
|
||||
annotationView.clusteringIdentifier = "waypointGroup"
|
||||
annotationView.markerTintColor = UIColor(.indigo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue