Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKPolygonMBS class.

MKPolygonMBS.boundingMapRect as MKMapRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The projected rectangle that encompasses the overlay.

This property contains the smallest rectangle that completely encompasses the overlay. Implementers of this interface must set this area when implementing their overlay class, and after setting it, you must not change it. The rectangle should be specified using projected coordinates—that is, coordinates obtained by projecting the globe onto a two-dimensional surface.

Part of the MKOverlayMBS interface.

MKPolygonMBS.canReplaceMapContent as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a Boolean indicating whether the overlay content replaces the underlying map content.

true if the map view can skip the loading and drawing of the underlying map tiles or false if the map tiles should still be drawn.

The map view uses the return value of this method as a hint to determine whether it should load and render its tiles. If your overlay covers its designated region entirely with opaque content, and effectively replaces the content of underlying map tiles, implement this method and return true. Doing so alleviates the need for the map to render its tiles.
If you do not implement this method, or if you return false from it, the map view continues to load and render its tiles.

Part of MKOverlayMBS interface.

MKPolygonMBS.Constructor(coords() as CLLocationCoordinate2DMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an MKPolygon object from the specified set of coordinates.

coords: The array of coordinates defining the shape.
Returns a new polygon object.

See also:

MKPolygonMBS.Constructor(coords() as CLLocationCoordinate2DMBS, InteriorPolygons() as MKPolygonMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an MKPolygon object from the specified set of map points and interior polygons.

points: The array of map points defining the shape. The data in this array is copied to the new object.
interiorPolygons: An array of MKPolygon objects that define one or more cutout regions for the receiver’s polygon.

See also:

MKPolygonMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 21.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Constructor for creating an instanced based on an existing handle.

Useful if you get a MKPolygon reference from a declare.
The object is retained.

See also:

MKPolygonMBS.Constructor(points() as MKMapPointMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an MKPolygon object from the specified set of map points.

points: The array of map points defining the shape. The data in this array is copied to the new object.

See also:

MKPolygonMBS.Constructor(points() as MKMapPointMBS, InteriorPolygons() as MKPolygonMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates and returns an MKPolygon object from the specified set of map points and interior polygons.

points: The array of map points defining the shape. The data in this array is copied to the new object.
interiorPolygons: An array of MKPolygon objects that define one or more cutout regions for the receiver’s polygon.

See also:

MKPolygonMBS.coordinate as CLLocationCoordinate2DMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The coordinate of the annotation.

Part of the MKAnnotationMBS interface.

MKPolygonMBS.interiorPolygons as MKPolygonMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The array of polygons nested inside the receiver.

When a polygon is rendered on screen, the area occupied by any interior polygons is masked out and not considered part of the polygon.

MKPolygonMBS.intersectsMapRect(mapRect as MKMapRectMBS) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Whether this overlay intersects with the given map rectangle.

Part of the MKOverlayMBS interface.

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


The biggest plugin in space...