MapViewDelegate
public protocol MapViewDelegate : AnyObject
The MapViewDelegate informs when map is ready.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Tells the delegate that the specified map view is ready to be used.
The
mapparameter is an instance ofMapthat implements:CameraActions,AnnotationsActions,RouteActions,LocationActions,MapActions.Parameters
mapViewThe map view object.
mapThe map object. Entry point for map manipulation.
-
Tells the delegate that the specified map view has loaded with a task result. If MapView has previously cached style it will be loaded.
Declaration
Swift
func mapView(_ mapView: MapView, onStyleLoad result: Result<StyleContainer, Error>)Parameters
mapViewThe map view object.
resultContains the StyleContainer or an error object.
MapViewDelegate Protocol Reference