NTMapTile


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

An immutable map tile, used by tile layers for representing small pieces of map at different zoom levels and coordinates.

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

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    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;

    Return Value

    The hash value of this object.

  • Constructs an empty MapTile object.

    Declaration

    Objective-C

    - (id)init;
  • Constructs a MapTile object based on coordinates, zoom level and frame number.

    Declaration

    Objective-C

    - (id)initWithX:(int)x y:(int)y zoom:(int)zoom frameNr:(int)frameNr;

    Parameters

    x

    The x coordinate of the tile.

    y

    The y coordinate of the tile.

    zoom

    The zoom level of the tile.

    frameNr

    The frame number of the tile.

  • Returns the x coordinate of this map tile.

    Declaration

    Objective-C

    - (int)getX;

    Return Value

    The x coordinate of this map tile.

  • Returns the y coordinate of this map tile.

    Declaration

    Objective-C

    - (int)getY;

    Return Value

    The y coordinate of this map tile.

  • Returns the zoom level of this map tile.

    Declaration

    Objective-C

    - (int)getZoom;

    Return Value

    The zoom level of this map tile.

  • Returns the time of this map tile.

    Declaration

    Objective-C

    - (int)getFrameNr;

    Return Value

    The time of this map tile.

  • Returns the internal tile id of this map tile.

    Declaration

    Objective-C

    - (long long)getTileId;

    Return Value

    The internal tile id of this map tile.

  • Checks for equality between this and another map tile.

    Declaration

    Objective-C

    - (BOOL)isEqualInternal:(NTMapTile *)tile;

    Parameters

    tile

    The other map tile.

    Return Value

    True if equal.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (int)hashInternal;

    Return Value

    The hash value of this object.

  • Creates a string representation of this map tile, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this map tile.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;