Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.maryanovsky.map.client
Interface TileLayer

All Known Implementing Classes:
  ImageTileLayer, OsmTileLayer, TileSetLayer

    public interface TileLayer

Defines the conversion from pixel map coordinates to the map tiles displayed on the map.

Author:
  Maryanovsky Alexander

Method Summary
`Tile` | `getTile(int x, int y, int zoom)` Returns the tile to display at the specified location (in pixels, relative to the top-left of the map) and zoom.
`SizeView` | `getTileSize()` Returns the size of the tiles.
`void` | `releaseTile(Tile tile)` Releases any resources associated with the specified tile that was returned by `getTile(int, int, int)`.

Method Detail

### getTileSize

    SizeView getTileSize()

  Returns the size of the tiles.

### getTile

    Tile getTile(int x,
                 int y,
                 int zoom)

  Returns the tile to display at the specified location (in pixels, relative to the top-left of the map) and zoom. Returns `null` if there is no tile at the specified location, if, for example, it is outside the boundaries of the map.

### releaseTile

    void releaseTile(Tile tile)

  Releases any resources associated with the specified tile that was returned by `getTile(int, int, int)`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD