FUIMKMapViewDelegate
public protocol FUIMKMapViewDelegate : AnyObject
A protocol adopted by an object which plays as the delegate of FUIMKMapView
.
-
mapView(_:willRender:for:in:in:)
Default implementationTell the delegate that the overlay is about to render on the map view.
Default Implementation
:nodoc
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, willRender overlayRenderer: MKOverlayRenderer, for geometryIndex: Int, in layer: FUIGeometryLayer, in state: FUIMapFloorplan.State)
Parameters
mapView
The map view object contains the graphic.
overlayRenderer
The overlay renderer which is the visual representation of the overlay.
geometryIndex
The index of the overlay.
layer
The layer in which the overlay exsits.
state
The state of the overlay.
-
Tell the delegate that the annotation is about to render on the map view.
Declaration
Swift
func mapView(_ mapView: MKMapView, willRender annotationView: MKAnnotationView, for geometryIndex: Int, in layer: FUIGeometryLayer, in state: FUIMapFloorplan.State)
Parameters
mapView
The map view object contains the annotation.
annotationView
The annotation view which is the visual representation of the annotation.
geometryIndex
The index of the annotation.
layer
The layer in which the annotation exsits.
state
The state of the annotation.
-
mapView(_:willRender:for:in:)
Default implementationTell the delegate that the cluster is about to render on the map view.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, willRender clusterAnnotationView: MKAnnotationView, for geometryIndexesInLayers: [FUIGeometryLayer : [Int]], in state: FUIMapFloorplan.State)
Parameters
mapView
The map view object contains the cluster.
clusterAnnotationView
The cluter annotation view which is the visual representation of the cluster.
geometryIndexesInLayers
A dictionary contains key-value pair elements representing annotations in this cluster. Key is the layer object and value is an array of indexes of annotations in this layer.
state
The state of the cluster.
-
mapView(_:didSelect:for:in:)
Default implementationTell the delegate that the annotation was selected.
Default Implementation
:nodoc
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation, for geometryIndex: Int, in layer: FUIGeometryLayer)
Parameters
mapView
The map view object contains the annotation.
annotation
The annotation which was selected.
geometryIndex
The index of the annotation.
layer
The layer in which the annotation exists.
-
mapView(_:didSelect:for:)
Default implementationTell the delegate that the cluster was selected.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didSelect clusterAnnotation: MKClusterAnnotation, for geometryIndexesInLayers: [FUIGeometryLayer : [Int]])
Parameters
mapView
The map view object contains the cluster.
clusterAnnotation
The cluster annotation which was selected.
geometryIndexesInLayers
A dictionary contains key-value pair elements representing annotations in this cluster. Key is the layer object and value is an array of indexes of annotations in this layer.
-
Tell the delegate that the overlay was selected.
Declaration
Swift
func mapView(_ mapView: MKMapView, didSelect overlay: MKOverlay, for geometryIndex: Int, in layer: FUIGeometryLayer)
Parameters
mapView
The map view object contains the overlay.
overlay
The overlay which was selected.
geometryIndex
The index of the overlay.
layer
The layer in which the overlay exists.
-
mapView(_:didSelect:)
Default implementationTell the delegate that the overlay renderer was selected.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didSelect overlayRenderer: MKOverlayRenderer)
Parameters
mapView
The map view object contains the overlay renderer.
overlayRenderer
The overlay renderer which was selected.
-
mapView(_:didDeselect:for:in:)
Default implementationTell the delegate that the annotation was deselected.
Default Implementation
:nodoc
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didDeselect annotation: MKAnnotation, for geometryIndex: Int, in layer: FUIGeometryLayer)
Parameters
mapView
The map view object contains the annotation.
annotation
The annotation which was deselected.
geometryIndex
The index of the annotation.
layer
The layer in which the annotation exists.
-
mapView(_:didDeselect:for:)
Default implementationTell the delegate that the cluster was deselected.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didDeselect clusterAnnotation: MKClusterAnnotation, for geometryIndexesInLayers: [FUIGeometryLayer : [Int]])
Parameters
mapView
The map view object contains the cluster.
clusterAnnotation
The cluster annotation which was deselected.
geometryIndexesInLayers
A dictionary contains key-value pair elements representing annotations in this cluster. Key is the layer object and value is an array of indexes of annotations in this layer.
-
Tell the delegate that the overlay was deselected.
Declaration
Swift
func mapView(_ mapView: MKMapView, didDeselect overlay: MKOverlay, for geometryIndex: Int, in layer: FUIGeometryLayer)
Parameters
mapView
The map view object contains the overlay.
overlay
The overlay which was deselected.
geometryIndex
The index of the overlay.
layer
The layer in which the overlay exists.
-
mapView(_:didDeselect:)
Default implementationTell the delegate that the overlay renderer was deselected.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didDeselect overlayRenderer: MKOverlayRenderer)
Parameters
mapView
The map view object contains the overlay renderer.
overlayRenderer
The overlay renderer which was deselected.