MGLAnnotationImageclass is responsible for presenting point-based annotations visually on a map view. Annotation image objects wrap
UIImageobjects and may be recycled later and put into a reuse queue that is maintained by the map view.
@interface MGLAnnotationImage : NSObject <NSSecureCoding>
class MGLAnnotationImage : NSObject, NSSecureCoding
MGLAnnotationViewclass is responsible for marking a point annotation with a view. Annotation views represent an annotation object, which is an object that corresponds to the
MGLAnnotationprotocol. When an annotation’s geographic coordinate is visible in the map view, the map view asks its delegate to a corresponding annotation view. If an annotation view is created with a reuse identifier, the map view may recycle the view when it goes offscreen.
Annotation views are compatible with UIKit, Core Animation, and other Cocoa Touch frameworks. On the other hand, if you do not need animation or interactivity such as dragging, you can use anSee more
MGLAnnotationImageinstead to conserve memory and optimize drawing performance.
@interface MGLAnnotationView : UIView <NSSecureCoding>
class MGLAnnotationView : UIView, NSSecureCoding
The MGLUserLocation class defines a specific type of annotation that identifies the user’s current location. You do not create instances of this class directly. Instead, you retrieve an existingSee more
MGLUserLocationobject from the
userLocationproperty of the map view displayed in your application.
@interface MGLUserLocation : NSObject <MGLAnnotation, NSSecureCoding>
class MGLUserLocation : NSObject, MGLAnnotation, NSSecureCoding