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

Add way to diff AnnotationViewPlus type #29

@ininex

Description

@ininex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions