You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm likely missing something basic but the annotation below is not displaying for some reason. It seems from docs that this is all that should be needed?
struct ContentView: View {
@State var center = CLLocationCoordinate2D(latitude: 39.5, longitude: -98.0)
var body: some View {
Map(initialViewport: .camera(center: center, zoom: 10)) {
PointAnnotation(coordinate: center)
}
}
}
The text was updated successfully, but these errors were encountered:
Hi @oreillyjf, we don't have a default image for a PointAnnotation it seems, a point annotation can be displayed with an image, a text, or both, so you need to specify which one to display with
Environment
I'm likely missing something basic but the annotation below is not displaying for some reason. It seems from docs that this is all that should be needed?
The text was updated successfully, but these errors were encountered: