3 Support MapVisibility control (#22)
[Problem]
- We only support
MKMapRect
as a way to configure the visible region of the map. We should also support all the ways you can control the visible region of the map withMKMapView
.[Solution]
- Switch away from a binding of
MKMapRect?
to a binding ofMapVisibility
and introduce a new enum.
SwiftUIAdvancedMap
A wrapper around MKMapView with more functionality than Map.
AdvancedMap
MapKit.Map
(UIKit Annotation Views)
(SwiftUI Annotation Views)
(UIKit Overlay Views)
(via
AnnoatationViewFactory
)(as an initialization parameter)
MKMapCamera
supportTap or Click Gesture with Coordinate on Map.
Rendering Annotations
Inspired by, and sometimes stealing from, the following projects: