MapViewDelegate
public protocol MapViewDelegate : AnyObject
Delegate for receiving map view lifecycle and interaction events.
-
mapView(_:Default implementationdidTouchAtPoint: ) Called when the user taps the map at the given screen point.
Default Implementation
Declaration
Swift
func mapView(_ mapView: MapView, didTouchAtPoint point: CGPoint)Parameters
mapViewThe map view that received the touch.
pointThe screen coordinate of the touch.
-
mapViewLoaded(_:Default implementationstyle: data: ) Called when the map view finishes loading its style and map data.
Note
This signals that the map’s content (style and points of interest) is ready. The initial camera is applied once the view has a non-zero size - i.e. after it has been laid out in the view hierarchy. If the view is not yet attached or sized when this fires,
centerCoordinatemay still reflect the default until the first layout pass completes.Default Implementation
Parameters
mapViewThe map view that finished loading.
styleThe MapLibre style that was applied.
dataThe map data loaded from the Wemap platform.
View on GitHub