Platforms to show: All Mac Windows Linux Cross-Platform
MKOverlayRendererMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
An overlay renderer draws the visual representation of an overlay object—that is, an object that conforms to the MKOverlayMBS interface. This class defines the drawing infrastructure used by the map view. Subclasses are expected to override the drawMapRect method to draw the contents of the overlay.
The Map Kit framework provides several concrete instances of overlay renderers. Specifically, it provides renderers for each of the concrete overlay objects. You can use one of these existing renderers or define your own subclasses if you want to draw the overlay contents differently.
- 4 properties
- property alpha as Double
- property contentScaleFactor as Double
- property Handle as Integer
- property overlay as MKOverlayMBS
- 11 methods
- method canDrawMapRect(Rect as MKMapRectMBS, zoomScale as Double) as Boolean
- method Constructor(Handle as Integer)
- method Constructor(overlay as MKOverlayMBS)
- method drawMapRect(Rect as MKMapRectMBS, zoomScale as Double, context as CGContextMBS)
- method mapPointForPoint(point as CGPointMBS) as MKMapPointMBS
- method mapRectForRect(Rect as CGRectMBS) as MKMapRectMBS
- method pointForMapPoint(mapRect as MKMapPointMBS) as CGPointMBS
- method RectForMapRect(mapRect as MKMapRectMBS) as CGRectMBS
- method setNeedsDisplay
- method setNeedsDisplayInMapRect(mapRect as MKMapRectMBS)
- method setNeedsDisplayInMapRect(mapRect as MKMapRectMBS, zoomScale as double)
- shared method RoadWidthAtZoomScale(zoomScale as double) as double
Sub classes:
Some methods using this class:
- MKMapViewMBS.rendererForOverlay(overlay as MKOverlayMBS) as MKOverlayRendererMBS
Some events using this class:
- DesktopMapKitViewControlMBS.DidAddOverlayRenderers(mapView as MKMapViewMBS, renderers() as MKOverlayRendererMBS)
- DesktopMapKitViewControlMBS.rendererForOverlay(mapView as MKMapViewMBS, overlay as MKOverlayMBS) as MKOverlayRendererMBS
- MapKitIOSControlMBS.DidAddOverlayRenderers(mapView as MKMapViewMBS, renderers() as MKOverlayRendererMBS)
- MapKitIOSControlMBS.rendererForOverlay(mapView as MKMapViewMBS, overlay as MKOverlayMBS) as MKOverlayRendererMBS
- MapKitViewControlMBS.DidAddOverlayRenderers(mapView as MKMapViewMBS, renderers() as MKOverlayRendererMBS)
- MapKitViewControlMBS.rendererForOverlay(mapView as MKMapViewMBS, overlay as MKOverlayMBS) as MKOverlayRendererMBS
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
MKOverlayPathRendererMBS - MKPinAnnotationViewMBS