Is MultiPolygon overlay support going to be integrated with SwiftUI?
I have made a post on here previously without a reply :(
Any suggestions on how to display multi-polygons within MapKit for SwiftUI(https://developer.apple.com/documentation/mapkit/mappolygon)?
At the moment it is not supported and only supported by MapKit for UIKit(https://developer.apple.com/documentation/mapkit/mkmultipolygon).
While the individual polygons represented by an MKMultiPolygon
can be specified by using code such as multiPolygon.polygons.map { MapPolygon($0) }
, there is no supported way to supply a single instance of MKMultiPolygon
directly to a SwiftUI Map
with the APIs currently available.
If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Please provide as many details about your use case as possible. Once you file the request, please post the FB number here.
If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?