FUIMKMapViewDataSource
public protocol FUIMKMapViewDataSource : AnyObject
A protocol adopted by an object that plays as the data model of FUIMKMapFloorplanViewController.
-
The number of layers in map view.
Declaration
Swift
func numberOfLayers(in mapView: MKMapView) -> IntParameters
mapViewThe map view object contains these layers.
Return Value
number of layers.
-
Ask the data source for
FUIGeometryLayerobject at specified index.Declaration
Swift
func mapView(_ mapView: MKMapView, layerAtIndex index: Int) -> FUIGeometryLayerParameters
mapViewThe map view object contains the layer.
indexThe index of layer.
Return Value
The
FUIGeometryLayerobject at specified index. -
Ask the data source for geometry objects at specified layer.
Declaration
Swift
func mapView(_ mapView: MKMapView, geometriesForLayer layer: FUIGeometryLayer) -> [FUIAnnotation]Parameters
mapViewThe map view object contains the geometry objects.
layerThe layer contains these geometry objects.
Return Value
Geometry objects in the layer.