HERE iOS SDK Developer's Guide

NMAVenue3dGestureHandler

Class Summary

class NMAVenue3dGestureHandler

Derived from: NSObject, NMAMapGestureDelegate, NMAVenue3dMapLayerDelegate

Provides an application with possibility to use Venue Zoom with conventional pinch zoom gesture.

Include: NMAKit.framework/headers/NMAVenue3dGestureHandler.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAVenue3dGestureHandler

[For complete information, see the section Class Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(nonnull) init

-(nonnull) initWithVenueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer

Initializes a NMAVenue3dGestureHandler with the specified venue map layer

-(void) mapView:(nonnull NMAMapView *) mapView didReceivePinch:(float) pinch atLocation:(CGPoint) location

Delegate callback for an NMAMapView pinch gesture.

-(void) venueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer didDeselectVenue:(nonnull NMAVenue3dVenue *) venue withEvent:( NMAVenue3dDeselectEvent ) event

This callback method is triggered when a venue is deselected

Class Method Summary

Table 2. Class Methods
Class Methods

+(nonnull) gestureHandlerWithVenueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer

Constructs a NMAVenue3dGestureHandler with the specified venue map layer

+(nonnull) new

Class Details

Provides an application with possibility to use Venue Zoom with conventional pinch zoom gesture.

Up to the maximum zoom level supported by NMAMapView, the gestures are handled by the current default gesture handler. When zooming more in with pinch gesture, the Venue Zoom is activated. Zooming out using pinch gesture will deactivate Venue Zoom and return back to normal zoom range.

Instance Method Details

-(nonnull) init

Instances of this class should not be initialized directly

-(nonnull) initWithVenueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer

Initializes a NMAVenue3dGestureHandler with the specified venue map layer.

Parameters:

  • venueMapLAyer

    A venue map layer object

-(void) mapView:(nonnull NMAMapView *) mapView didReceivePinch:(float) pinch atLocation:(CGPoint) location

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.

-(void) venueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer didDeselectVenue:(nonnull NMAVenue3dVenue *) venue withEvent:( NMAVenue3dDeselectEvent ) event

This callback method is triggered when a venue is deselected.

Parameters:

Class Method Details

+(nonnull) gestureHandlerWithVenueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer

Constructs a NMAVenue3dGestureHandler with the specified venue map layer.

Parameters:

  • venueMapLAyer

    A venue map layer object

+(nonnull) new

Instances of this class should not be initialized directly

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.