Portals have been enhanced this year with the ability to cross portal boundaries. It's discussed around the 20 minute mark, "Portal Enhancements" in the following video:
https://developer.apple.com/videos/play/wwdc2024/10103/
Post
Replies
Boosts
Views
Activity
When tapping anywhere on a Map view, I get a warning "Trying to convert coordinates between views that are in different UIWindows, which isn't supported. Use convertPoint:fromCoordinateSpace: instead."
I'd guess it's got something to do with that.
The approach would be to iterate inside the map using ForEach() to add the markers.
Add a title string property to IdentifiableAnnotation and display it as such:
Map(coordinateRegion: $locationManager.region,
interactionModes: .all,
showsUserLocation: true,
userTrackingMode: .none) {
ForEach(courtAnnotations) { item in
Marker(item.title, coordinate: item.annotation.coordinate)
}
}