Multi Polygons MapKit

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).

Answered by Frameworks Engineer in 791051022

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?

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?

Hello!

I have submitted the request!

Here is the FB: FB14001724

Is there a chance you can provide any updates on this feature request? I would love to test it out and help out any way I can!

Thank you!

Any news about your request. Did you find a way to create polygons from a multi polygon? Thank you

No reply yet from Apple. I can try to work a code solution and post here for you charbonn.

Multi Polygons MapKit
 
 
Q