DingiPointAnnotation


@interface DingiPointAnnotation : DingiShape

An DingiPointAnnotation object represents a one-dimensional shape located at a single geographical coordinate. Depending on how it is used, an DingiPointAnnotation object is known as a point annotation or point shape. For example, you could use a point shape to represent a city at low zoom levels, an address at high zoom levels, or the location of a long press gesture.

You can add point shapes to the map by adding them to an DingiShapeSource object. Configure the appearance of an DingiShapeSource’s or DingiVectorTileSource’s point shapes collectively using an DingiCircleStyleLayer or DingiSymbolStyleLayer object.

For more interactivity, add a selectable point annotation to a map view using the -[DingiMapView addAnnotation:] method. Alternatively, define your own model class that conforms to the MGLAnnotation protocol. Configure a point annotation’s appearance using -[DingiMapViewDelegate mapView:imageForAnnotation:] or -[DingiMapViewDelegate mapView:viewForAnnotation:] (iOS only). A point annotation’s DingiShape.title and DingiShape.subtitle properties define the default content of the annotation’s callout (on iOS) or popover (on macOS).

To group multiple related points together in one shape, use an DingiPointCollection or DingiShapeCollection object. To access a point’s attributes, use an DingiPointFeature object.

A point shape is known as a Point geometry in GeoJSON.

  • The coordinate point of the shape, specified as a latitude and longitude.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CLLocationCoordinate2D coordinate;

    Swift

    var coordinate: CLLocationCoordinate2D { get set }