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 instancetype) init

-(nonnull instancetype) 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 instancetype) gestureHandlerWithVenueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer

Constructs a NMAVenue3dGestureHandler with the specified venue map layer

+(nonnull instancetype) 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 instancetype) init

Instances of this class should not be initialized directly

-(nonnull instancetype) 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 instancetype) gestureHandlerWithVenueMapLayer:(nonnull NMAVenue3dMapLayer *) venueMapLayer

Constructs a NMAVenue3dGestureHandler with the specified venue map layer.

Parameters:

  • venueMapLayer

    A venue map layer object

+(nonnull instancetype) new

Instances of this class should not be initialized directly