MapInteraction
public enum MapInteraction : Event
Describes possible cases of MapInteractionEvent
.
-
Notifies the user when interaction with the
MapView
starts.Declaration
Swift
case interactionStarted
-
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 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)
-
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 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 tilts the map.
- state: the gesture state.
Declaration
Swift
case tilted(state: GestureState)