Instance Method

mapTemplate:didUpdatePanGestureWithTranslation:velocity:

Tells the delegate that the pan gesture changed.

Declaration

- (void)mapTemplate:(CPMapTemplate *)mapTemplate didUpdatePanGestureWithTranslation:(CGPoint)translation velocity:(CGPoint)velocity;

Parameters

mapTemplate

The current map template.

translation

The updated translation point.

velocity

The velocity of the pan gesture.

Discussion

CarPlay doesn’t call this method when connected to some CarPlay systems.

See Also

Panning the Map

- mapTemplateDidShowPanningInterface:

Tells the delegate that the panning interface is visible on the map.

- mapTemplateWillDismissPanningInterface:

Tells the delegate that the panning interface will disappear from the map.

- mapTemplateDidDismissPanningInterface:

Tells the delegate that the panning interface is no longer visible on the map.

- mapTemplateDidBeginPanGesture:

Tells the delegate that the pan gesture has started.

- mapTemplate:panBeganWithDirection:

Tells the delegate that the user is starting to pan the map.

- mapTemplate:panWithDirection:

Tells the delegate that the user is panning in a certain direction on the map.

- mapTemplate:panEndedWithDirection:

Tells the delegate that the user stopped panning the map.

CPPanDirection

The directions a user can pan (or move) a map displayed on the CarPlay screen.

- mapTemplate:didEndPanGestureWithVelocity:

Tells the delegate that the pan gesture ended with the specified velocity.