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
map
parameter is an instance ofTomTomMap
that implements:CameraActions
,AnnotationsActions
,RouteActions
,LocationActions
,MapActions
.Parameters
mapView
The map view object.
map
The 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
mapView
The map view object.
result
Contains the StyleContainer or an error object.