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.osm
Class OsmTileLayer

    java.lang.Object
      com.maryanovsky.map.client.osm.OsmTileLayer

All Implemented Interfaces:
  TileLayer

    public class OsmTileLayer

extends Object
implements TileLayer

Implements an OpenStreetMaps.org tile layer.

Author:
  Maryanovsky Alexander

Constructor Summary
`OsmTileLayer(String baseUrl, int minZoom, int maxZoom)` Creates a new `OsmTileLayer` with the specified base URL.

Method Summary
`SizeView` | `getTileSize()` Returns the size of the tiles.
`String` | `getTileUrl(int x, int y, int zoom)` Returns the URL of the tile to display at the specified location (in pixels) and zoom.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OsmTileLayer

    public OsmTileLayer(String baseUrl,
                        int minZoom,
                        int maxZoom)

  Creates a new `OsmTileLayer` with the specified base URL.

Method Detail

### getTileSize

    public SizeView getTileSize()

  Returns the size of the tiles.

  Specified by:
    `getTileSize` in interface `TileLayer`

### getTileUrl

    public String getTileUrl(int x,
                             int y,
                             int zoom)

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

  Specified by:
    `getTileUrl` in interface `TileLayer`

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