public class

MapTile

extends Object
java.lang.Object
   ↳ com.carto.core.MapTile

Class Overview

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

Summary

Public Constructors
MapTile()
Constructs an empty MapTile object.
MapTile(int x, int y, int zoom, int frameNr)
Constructs a MapTile object based on coordinates, zoom level and frame number.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
int getFrameNr()
Returns the time of this map tile.
long getTileId()
Returns the internal tile id of this map tile.
int getX()
Returns the x coordinate of this map tile.
int getY()
Returns the y coordinate of this map tile.
int getZoom()
Returns the zoom level of this map tile.
int hashCode()
Returns the hash value of this object.
String toString()
Creates a string representation of this map tile, useful for logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MapTile ()

Constructs an empty MapTile object.

public MapTile (int x, int y, int zoom, int frameNr)

Constructs a MapTile object based on coordinates, zoom level and frame number.

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.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public int getFrameNr ()

Returns the time of this map tile.

Returns
  • The time of this map tile.

public long getTileId ()

Returns the internal tile id of this map tile.

Returns
  • The internal tile id of this map tile.

public int getX ()

Returns the x coordinate of this map tile.

Returns
  • The x coordinate of this map tile.

public int getY ()

Returns the y coordinate of this map tile.

Returns
  • The y coordinate of this map tile.

public int getZoom ()

Returns the zoom level of this map tile.

Returns
  • The zoom level of this map tile.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public String toString ()

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

Returns
  • The string representation of this map tile.