MapInteraction
public enum MapInteraction
extension MapInteraction: Event
Describes possible cases of MapInteractionEvent
.
Fired when the user double taps on a given location on the map.
- coordinate: Coordinate geographic representation of the point that the user double tapped.
Declaration
Swift
case doubleTapped(coordinate: CLLocationCoordinate2D)
Notifies the user when interaction with the MapView
starts.
Declaration
Swift
case interactionStarted
Fired when the user does a long press on a given location on the map.
- coordinate: Coordinate geographic representation of the point that the user did a long press on.
Declaration
Swift
case longPressed(coordinate: CLLocationCoordinate2D)
Fired when the user pans on the map.
- state: the gesture state.
Declaration
Swift
case panned(state: GestureState)
Fired when the user pinches on the map.
- state: the gesture state.
Declaration
Swift
case pinched(state: GestureState)
Fired when the user rotates on the map.
- state: the gesture state.
Declaration
Swift
case rotated(state: GestureState)
Fired when the user taps on a given location on the map.
- coordinate: Coordinate geographic representation of the point that the user tapped.
Declaration
Swift
case tapped(coordinate: CLLocationCoordinate2D)
Fired when the user taps on a given Annotation
.
- annotation: The annotation of the tap.
- coordinate: Coordinate geographic representation of the point that the user tapped.
Declaration
Swift
case tappedOnAnnotation(annotation: Annotation, coordinate: CLLocationCoordinate2D)
Fired when the user taps on current location marker.
- coordinate: The current location marker coordinate.
Declaration
Swift
case tappedOnLocationMarker(coordinate: CLLocationCoordinate2D)
Fired when the user taps on recenter button.
Declaration
Swift
case tappedOnRecenterButton
Fired when the user taps with two fingers on a given location on the map.
- coordinate: Coordinate geographic representation of the center between the points the user double tapped.
Declaration
Swift
case tappedWithTwoFingers(coordinate: CLLocationCoordinate2D)
Fired when the user tilts the map.
- state: the gesture state.
Declaration
Swift
case tilted(state: GestureState)