KNMapPOIEventListener
INFO
This English reference is based on Directions SDK 1.12.12. For the latest version, see the Korean reference.
- Inherits from: NSObject
- Declared in: KNMapPOIProperties.h
Receives touch events for a Point of Interest (POI), including single-tap, double-tap, and long-press.
Methods
mapView:onSingleTapped:poiName:coordinate
Called when a POI is tapped once. Returns information about the selected POI.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onSingleTapped: (SInt64) aPOIId
poiName: (NSArray *_Nullable) aPOIName
coordinate: (FloatPoint) aCoordinateParameters
| Name | Description |
|---|---|
aMapView | Map view where the touch event occurred |
aPOIId | ID of the selected POI |
aPOIName | Name of the selected POI |
aCoordinate | KATEC coordinates of the selected POI |
mapView:onDoubleTapped:poiName:coordinate
Called when a POI is double-tapped. Returns information about the selected POI.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onDoubleTapped: (SInt64) aPOIId
poiName: (NSArray* _Nullable) aPOIName
coordinate: (FloatPoint) aCoordinate;Parameters
| Name | Description |
|---|---|
aMapView | Map view where the touch event occurred |
aPOIId | ID of the selected POI |
aPOIName | Name of the selected POI |
aCoordinate | KATEC coordinates of the selected POI |
mapView:onLongPressed:poiName:coordinate
Called when a POI is long-pressed. Returns information about the selected POI.
objc
- (void) mapView: (KNMapView *_Nonnull) aMapView
onLongPressed: (SInt64) aPOIId
poiName: (NSArray* _Nullable) aPOIName
coordinate: (FloatPoint) aCoordinate;Parameters
| Name | Description |
|---|---|
aMapView | Map view where the touch event occurred |
aPOIId | ID of the selected POI |
aPOIName | Name of the selected POI |
aCoordinate | KATEC coordinates of the selected POI |