addAnnotation method
Adds an annotation to the map view.
Note:
MLNMultiPolyline,MLNMultiPolyline,MLNMultiPolyline, andMLNPointCollectionobjects 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.
Related examples
- TODO: add a line annotation from GeoJSON.
- TODO: add an annotation to an
MLNMapViewobject.
Implementation
void addAnnotation(MLNAnnotation annotation) {
_objc_msgSend_xtuoz7(this.ref.pointer, _sel_addAnnotation_, annotation.ref.pointer);
}