MapKit.MKMapViewDelegate.OverlayRenderer Method
Calculates he MapKit.MKOverlayRenderer appropriate to the overlay.

Syntax

[Foundation.Export("mapView:rendererForOverlay:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
public virtual MKOverlayRenderer OverlayRenderer (MKMapView mapView, IMKOverlay overlay)

See Also

MKMapView.OverlayRenderer

Parameters

mapView
The MapKit.MKMapView being rendered.
overlay
The overlay requiring a renderer.

Returns

Documentation for this section has not yet been entered.

Remarks

iOS distinguishes between the MapKit.MKOverlay, which represents the geometry of an overlay, and it's visual presentation. Prior to iOS 7, overlays were rendered using MapKit.MKOverlayViews. In iOS 7, these classes have been deprecated, and overlays now use the more efficient subclasses of MapKit.MKOverlayRenderer.

To create an overlay and its renderer, application developers must add the overlay to the MapKit.MKMapView and return the renderer either using the MKMapView.OverlayRenderer property or by overriding the MKMapViewDelegate.OverlayRenderer method.

This method dynamically calculates the renderer, allowing the application developer to reuse renderers with identical properties or to change properties dynamically.

Requirements

Namespace: MapKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0