HERE iOS SDK Developer's Guide

<NMAMapGestureDelegate>

Protocol Summary

protocol <NMAMapGestureDelegate>

Derived from: <NSObject>

Delegate protocol for map gesture handling.

Include: NMAKit.framework/headers/NMAMapGesture.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for <NMAMapGestureDelegate> – <NMAMapGestureDelegate>

[For complete information, see the section Protocol Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveDoubleTapAtLocation:(mapViewDidReceiveDoubleTap(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView double-tap gesture

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveLongPressAtLocation:(mapViewDidReceiveLongPress(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView long press gesture

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceivePan:(CGPoint) translation atLocation:(mapViewDidReceivePan(_:translation:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView pan gesture.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceivePinch:(float) pinch atLocation:(mapViewDidReceivePinch(_:pinch:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView pinch gesture.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveTapAtLocation:(mapViewDidReceiveTap(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView tap gesture

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveTwoFingerTapAtLocation:(mapViewDidReceiveTwoFingerTap(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView two finger-tap gesture

Protocol Details

Delegate protocol for map gesture handling.

This protocol should be implemented by any class which acts as the gesture delegate for a map view or any map subview which needs to receive gestures from the map view.

The NMAMapView may optionally be provided with a gesture delegate, set via the gestureDelegate property. This delegate can be used to receive events about gestures.

Note:

Methods of this protocol will be called on the main queue.

Instance Method Details

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveDoubleTapAtLocation:(mapViewDidReceiveDoubleTap(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView double-tap gesture.

Parameters:

  • mapView

    The NMAMapView on which the gesture occurred.

  • location

    The screen location in points at which the gesture occurred.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveLongPressAtLocation:(mapViewDidReceiveLongPress(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView long press gesture.

Parameters:

  • mapView

    The NMAMapView on which the gesture occurred.

  • location

    The screen location in points at which the gesture occurred.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceivePan:(CGPoint) translation atLocation:(mapViewDidReceivePan(_:translation:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView pan gesture.

The translation of a pan gesture is reported as the distance covered by the gesture since the last callback or since the beginning of the gesture. Note that this differs from the behaviour of UIPanGestureRecognizer, which reports the total translation since the beginning of the gesture.

Parameters:

  • mapView

    The NMAMapView on which the gesture occurred.

  • translation

    The current translation of the pan gesture, in points.

  • location

    The screen location in points at which the gesture occurred.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceivePinch:(float) pinch atLocation:(mapViewDidReceivePinch(_:pinch:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView pinch gesture.

The current pinch change is measured as the relative distance change of the two touch points since the last pinch callback or the beginning of the gesture. For example, if the pinch value is 1.2, the two touches are 20% farther apart than they were at the time of the last update. Note that this differs from the behaviour of UIPinchGestureRecognizer, which reports the total pinch since the beginning of the gesture.

Parameters:

  • mapView

    The NMAMapView on which the gesture occurred.

  • pinch

    The current relative pinch change of the gesture.

  • location

    The screen location in points at which the gesture occurred.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveTapAtLocation:(mapViewDidReceiveTap(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView tap gesture.

Parameters:

  • mapView

    The NMAMapView on which the gesture occurred.

  • location

    The screen location in points at which the gesture occurred.

- @optional (void) mapView:(nonnull NMAMapView *) mapView didReceiveTwoFingerTapAtLocation:(mapViewDidReceiveTwoFingerTap(_:at:)) NS_SWIFT_NAME

Delegate callback for an NMAMapView two finger-tap gesture.

Parameters:

  • mapView

    The NMAMapView on which the gesture occurred.

  • location

    The screen location in points at which the gesture occurred.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.