Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

MKPointAnnotationMBS class

Super class: MKShapeMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class MapKit MBS MacFrameworks Plugin 14.1 Yes No No Yes, macOS only No
Function: The MKPointAnnotation class defines a concrete annotation object located at a specified point.
dim mapview as MKMapViewMBS // your map view

// new pin
dim pin as new MKPointAnnotationMBS

pin.coordinate = mapView.centerCoordinate
pin.title = "Hello"

// show on map
mapView.addAnnotation pin
You can use this class, rather than define your own, in situations where all you want to do is associate a point on the map with a title.
Subclass of the MKShapeMBS class.

Feedback, Comments & Corrections

Super class MKShapeMBS

Super class MKAnnotationMBS

This class has no sub classes.

Some examples which use this class:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.

MKPlacemarkMBS   -   MKPolygonMBS

MBS Xojo PDF Plugins