NTMapEventListener


@interface NTMapEventListener : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Listener for events like map clicks etc.

  • Listener method that gets called at the end of the rendering process when the map view needs no further refreshing. Note that there can still be background processes (tile loading) that may change the map view but these may take long time. This method is called from GL renderer thread, not from main thread.

    Declaration

    Objective-C

    - (void)onMapIdle;
  • Listener method that gets called at the end of the rendering process when the map view needs no further refreshing. Note that there can still be background processes (tile loading) that may change the map view but these may take long time. This method is called from GL renderer thread, not from main thread.

    Declaration

    Objective-C

    - (void)onMapIdleSwigExplicitNTMapEventListener;
  • Listener method that gets called when the map is panned, rotated, tilted or zoomed. The callback is used for both UI events and map changes resulting from API calls. It is recommended to use onMapInteraction callback instead of onMapMoved, if possible. Doing any calls to update MapView state from this method is potentially dangerous and may result in deadlocks or crashes. The thread this method is called from may vary.

    Declaration

    Objective-C

    - (void)onMapMoved;
  • Listener method that gets called when the map is panned, rotated, tilted or zoomed. The callback is used for both UI events and map changes resulting from API calls. It is recommended to use onMapInteraction callback instead of onMapMoved, if possible. Doing any calls to update MapView state from this method is potentially dangerous and may result in deadlocks or crashes. The thread this method is called from may vary.

    Declaration

    Objective-C

    - (void)onMapMovedSwigExplicitNTMapEventListener;
  • Listener method that gets called when map is in ‘stable’ state - map animations have finished, user has lifted fingers from the screen. This method is similar to onMapIdle, but is called less frequently and takes account touch state. The thread this method is called from may vary.

    Declaration

    Objective-C

    - (void)onMapStable;
  • Listener method that gets called when map is in ‘stable’ state - map animations have finished, user has lifted fingers from the screen. This method is similar to onMapIdle, but is called less frequently and takes account touch state. The thread this method is called from may vary.

    Declaration

    Objective-C

    - (void)onMapStableSwigExplicitNTMapEventListener;
  • Listener method that gets called when user has interacted with the map. The callback includes info about interaction type (panning, zooming, etc).

    Declaration

    Objective-C

    - (void)onMapInteraction:(NTMapInteractionInfo *)mapInteractionInfo;

    Parameters

    mapInteractionInfo

    A container that provides information about the interaction.

  • Listener method that gets called when user has interacted with the map. The callback includes info about interaction type (panning, zooming, etc).

    Declaration

    Objective-C

    - (void)onMapInteractionSwigExplicitNTMapEventListener:
        (NTMapInteractionInfo *)mapInteractionInfo;

    Parameters

    mapInteractionInfo

    A container that provides information about the interaction.

  • Listener method that gets called when a click is performed on an empty area of the map. This method will NOT be called from the main thread.

    Declaration

    Objective-C

    - (void)onMapClicked:(NTMapClickInfo *)mapClickInfo;

    Parameters

    mapClickInfo

    A container that provides information about the click.

  • Listener method that gets called when a click is performed on an empty area of the map. This method will NOT be called from the main thread.

    Declaration

    Objective-C

    - (void)onMapClickedSwigExplicitNTMapEventListener:
        (NTMapClickInfo *)mapClickInfo;

    Parameters

    mapClickInfo

    A container that provides information about the click.

  • Undocumented

    Declaration

    Objective-C

    -(id)init;
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;