This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Annotation views on macOS #5035
Labels
annotations
Annotations on iOS and macOS or markers on Android
archived
Archived because of inactivity
feature
macOS
Mapbox Maps SDK for macOS
The iOS and OS X versions of MGLMapView had nearly identical annotation implementations up until annotation views landed on iOS in #4801. @boundsj did a great job keeping the implementation clean, so porting it to OS X should mostly be a copy-paste job.
Along the way, it may be possible to directly share MGLAnnotationImage and MGLAnnotationView between the two SDKs in platform/darwin/ the way the other annotation classes are shared. The downside to sharing MGLAnnotationView would be limited Interface Builder support. We’d need to conditionally make MGLAnnotationView inherit from UIView on iOS and NSView on OS X with conditional compilation, yet IB lost the ability to understand preprocessor commands in Xcode 6.
The text was updated successfully, but these errors were encountered: