addAnnotation method

void addAnnotation(
  1. MLNAnnotation annotation
)

Adds an annotation to the map view.

Note: MLNMultiPolyline, MLNMultiPolyline, MLNMultiPolyline, and MLNPointCollection objects cannot be added to the map view at this time. Any multipoint, multipolyline, multipolygon, shape or point collection object that is specified is silently ignored.

@param annotation The annotation object to add to the receiver. This object must conform to the MLNAnnotation protocol. The map view retains the annotation object.

  • TODO: add a line annotation from GeoJSON.
  • TODO: add an annotation to an MLNMapView object.

Implementation

void addAnnotation(MLNAnnotation annotation) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_addAnnotation_, annotation.ref.pointer);

}