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'd like to display Annotations differently depending on the current zoom factor. Is there a way to access the current zoom factor? I couldn't find it... Thanks !
The text was updated successfully, but these errors were encountered:
I'm currently unaware of such a functionality and I am actually wondering about how this would be done in UIKit MKMapView - of course, you could theoretically resort to MKOverlay instead, which would allow you to access the MKZoomScale inside the render-method of MKOverlayRenderer.
The best current workaround using overlays would probably be to write your own MKOverlayRenderer subclass. You could then wrap this renderer in a MapOverlay conforming struct (see MapCircle, MapPolyline, etc).
If that annotation/overlay is supposed to be created from SwiftUI views, you would probably need that overlay to be similarly generic to ViewMapAnnotation (just conforming to MapOverlay instead of MapAnnotation).
It would be really great to have this kind of functionality and flexibility in this project, so feel free to open a pull request or comment, if you happen to implement something that could also be used or at least adapted to help others as well 😊
I'd like to display Annotations differently depending on the current zoom factor. Is there a way to access the current zoom factor? I couldn't find it... Thanks !
The text was updated successfully, but these errors were encountered: