Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Add way to diff AnnotationViewPlus type #29

Open
ininex opened this issue Oct 25, 2020 · 0 comments
Open

Add way to diff AnnotationViewPlus type #29

ininex opened this issue Oct 25, 2020 · 0 comments

Comments

@ininex
Copy link

ininex commented Oct 25, 2020

I don't really know how to check the type of my pin annotation type in delegate mapView(_ mapView: MapViewPlus, calloutViewFor annotationView: AnnotationViewPlus) -> CalloutViewPlus. The AnnotationViewPlus comes from nowhere, now define CalloutViewPlus is mandatory. What if I only want one pin to show callout view but not others? Having that hacking method to hide callout view for certain pins(as another issue thread mentioned) is kind of silly. Why don't you change this delegate return value as optional? I cannot show other subclass of MKAnnotation if I use only MapViewPlus, it just crashes as the mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? is overriden by MapViewPlus's delegate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant