FUIMKMapViewDelegate
public protocol FUIMKMapViewDelegate : AnyObject
A protocol adopted by an object which plays as the delegate of FUIMKMapFloorplanViewController.
-
mapView(_:willRender:for:in:in:)Default implementationTell the delegate that the overlay is about to render on the map view.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, willRender overlayRenderer: MKOverlayRenderer, for geometryIndex: Int, in layer: FUIGeometryLayer, in state: FUIMapFloorplan.State)Parameters
mapViewThe map view object contains the graphic.
overlayRendererThe overlay renderer which is the visual representation of the overlay.
geometryIndexThe index of the overlay.
layerThe layer in which the overlay exists.
stateThe 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
mapViewThe map view object contains the annotation.
annotationViewThe annotation view which is the visual representation of the annotation.
geometryIndexThe index of the annotation.
layerThe layer in which the annotation exists.
stateThe 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
mapViewThe map view object contains the cluster.
clusterAnnotationViewThe cluster annotation view which is the visual representation of the cluster.
geometryIndexesInLayersA 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.
stateThe state of the cluster.
-
mapView(_:didSelect:for:in:)Default implementationTell the delegate that the annotation was selected.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didSelect annotation: FUIAnnotation, for geometryIndex: Int, in layer: FUIGeometryLayer)Parameters
mapViewThe map view object contains the annotation.
annotationThe
FUIAnnotationobject which was selected.geometryIndexThe index of the annotation.
layerThe 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
mapViewThe map view object contains the cluster.
clusterAnnotationThe cluster annotation which was selected.
geometryIndexesInLayersA 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: FUIOverlay, for geometryIndex: Int, in layer: FUIGeometryLayer)Parameters
mapViewThe map view object contains the overlay.
overlayThe overlay which was selected.
geometryIndexThe index of the overlay.
layerThe 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
mapViewThe map view object contains the overlay renderer.
overlayRendererThe overlay renderer which was selected.
-
mapView(_:didDeselect:for:in:)Default implementationTell the delegate that the annotation was deselected.
Default Implementation
:nodoc
Declaration
Swift
func mapView(_ mapView: MKMapView, didDeselect annotation: FUIAnnotation, for geometryIndex: Int, in layer: FUIGeometryLayer)Parameters
mapViewThe map view object contains the annotation.
annotationThe annotation which was deselected.
geometryIndexThe index of the annotation.
layerThe 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
mapViewThe map view object contains the cluster.
clusterAnnotationThe cluster annotation which was deselected.
geometryIndexesInLayersA 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: FUIOverlay, for geometryIndex: Int, in layer: FUIGeometryLayer)Parameters
mapViewThe map view object contains the overlay.
overlayThe overlay which was deselected.
geometryIndexThe index of the overlay.
layerThe 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
mapViewThe map view object contains the overlay renderer.
overlayRendererThe overlay renderer which was deselected.