Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKCircleMBS class.

MKCircleMBS.circleWithCenterCoordinate(coord as CLLocationCoordinate2DMBS, radius as Double) as MKCircleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MapKit MBS MacFrameworks Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an MKCircle object using the specified coordinate and radius.
Example
dim mapview as MKMapViewMBS // your map view
dim centerCoordinate as CLLocationCoordinate2DMBS = mapview.centerCoordinate
dim radius as Integer = 300 // 300 meter

dim circle as MKCircleMBS = MKCircleMBS.circleWithCenterCoordinate(centerCoordinate, radius)
mapview.addOverlay circle

coord: The center point of the circle, specified as a latitude and longitude value.
radius: The radius of the circle, measured in meters from the center point.

See also:

Some examples using this method:

MKCircleMBS.circleWithCenterCoordinate(Latitude as Double, Longitude as Double, radius as Double) as MKCircleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MapKit MBS MacFrameworks Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an MKCircle object using the specified coordinate and radius.

Latitude and Longitude: The center point of the circle, specified as a latitude and longitude value.
radius: The radius of the circle, measured in meters from the center point.

See also:

MKCircleMBS.circleWithMapRect(mapRect as MKMapRectMBS) as MKCircleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates new circle object with given rectangle.

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


The biggest plugin in space...