| java.lang.Object | |
| ↳ | com.carto.core.MapTile |
An immutable map tile, used by tile layers for representing small pieces of map at different zoom levels and coordinates.
| 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
| |||||||||||
Constructs an empty MapTile object.
Constructs a MapTile object based on coordinates, zoom level and frame number.
| 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. |
Checks if this object is equal to the specified object.
| obj | The reference object. |
|---|
Returns the time of this map tile.
Returns the internal tile id of this map tile.
Returns the x coordinate of this map tile.
Returns the y coordinate of this map tile.
Returns the zoom level of this map tile.
Returns the hash value of this object.
Creates a string representation of this map tile, useful for logging.