MSFVectorTileClickInfo

Objective-C


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

Swift

class MSFVectorTileClickInfo : NSObject

A container class that provides information about a click performed on vector tile feature.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Swift

    func isEqual(_ object: Any!) -> Bool

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Swift

    func hash() -> UInt

    Return Value

    The hash value of this object.

  • Returns the click type.

    Declaration

    Objective-C

    - (enum MSFClickType)getClickType;

    Swift

    func getClickType() -> MSFClickType

    Return Value

    The type of the click performed.

  • Returns the click info.

    Declaration

    Objective-C

    - (MSFClickInfo *)getClickInfo;

    Swift

    func getClickInfo() -> MSFClickInfo!

    Return Value

    The attributes of the click.

  • Returns the click position.

    Declaration

    Objective-C

    - (MSFMapPos *)getClickPos;

    Swift

    func getClickPos() -> MSFMapPos!

    Return Value

    The click position in the coordinate system of the data source.

  • Returns the position on the clicked feature, that is close to the click position. For points it will always be the center position, for lines it will be the closest point on the line, for billboards it will be the anchor point and for polygons it’s equal to getClickPos().

    Declaration

    Objective-C

    - (MSFMapPos *)getFeatureClickPos;

    Swift

    func getFeatureClickPos() -> MSFMapPos!

    Return Value

    The feature click position in the coordinate system of the data source.

  • Returns the position of the clicked feature.

    For a MultiPoint this is the point that was clicked, not the centre of the whole set - which getFeatureClickPos deliberately does not cover, and which a caller otherwise has to reconstruct from getFeaturePosIndex plus a downcast.

    Declaration

    Objective-C

    - (MSFMapPos *)getFeaturePos;

    Swift

    func getFeaturePos() -> MSFMapPos!

    Return Value

    The feature position, in the coordinate system of the data source.

  • Returns the tile id of the clicked feature.

    Declaration

    Objective-C

    - (MSFMapTile *)getMapTile;

    Swift

    func getMapTile() -> MSFMapTile!

    Return Value

    The tile id of the clicked feature.

  • Returns the id of the clicked feature.

    Declaration

    Objective-C

    - (long long)getFeatureId;

    Swift

    func getFeatureId() -> Int64

    Return Value

    The id of the clicked feature.

  • In case of MultiPoint PointGeometry this will return the index of the clicked position

    Declaration

    Objective-C

    - (int)getFeaturePosIndex;

    Swift

    func getFeaturePosIndex() -> Int32

    Return Value

    The index

  • Returns the clicked feature.

    Declaration

    Objective-C

    - (MSFVectorTileFeature *)getFeature;

    Swift

    func getFeature() -> MSFVectorTileFeature!

    Return Value

    The feature on which the click was performed.

  • Returns the name of the layer of the clicked feature. Note that this is the layer name in the tile, not the name of style layer.

    Declaration

    Objective-C

    - (NSString *)getFeatureLayerName;

    Swift

    func getFeatureLayerName() -> String!

    Return Value

    The name of the layer of the clicked feature.

  • Returns the layer of the vector tile.

    Declaration

    Objective-C

    - (MSFLayer *)getLayer;

    Swift

    func getLayer() -> MSFLayer!

    Return Value

    The layer of the vector tile.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()