Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Two annotations with identical coordinates but different titles are considered equal #8351

@1ec5

Description

@1ec5

As of #6559, if you create two MGLPointAnnotations with identical coordinates but different titles or subtitles, calling -isEqual: on them will return YES. This means you can’t add both to the same map view, the same behavior noted in #7811. The -isEqual: implementations should consider all the properties of the objects, even ones that don’t get displayed on the map. (For macOS, this includes the tooltip property.)

/cc @frederoni @boundsj

Metadata

Metadata

Assignees

No one assigned

    Labels

    MapKit parityFor feature parity with MapKit on iOS or macOSannotationsAnnotations on iOS and macOS or markers on AndroidbugiOSMapbox Maps SDK for iOSmacOSMapbox Maps SDK for macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions