Interface TileSource
- All Known Implementing Classes:
BundledTileSource, DemoTileSource, HttpTileSource, MvtTileSource, RasterTileSource
public interface TileSource
Supplies tile payloads to the
VectorMapEngine given a slippy-map
z/x/y address. Two flavors exist: vector sources (isVector() true)
returning MVT protobuf bytes that the engine decodes and styles, and
raster sources returning encoded-image bytes that the engine simply
blits. The bundled BundledTileSource, the networked MvtTileSource and
the keyless RasterTileSource cover the universal, vector and zero-config
cases respectively.-
Method Summary
Modifier and TypeMethodDescriptionvoidfetchTile(int z, int x, int y, TileCallback callback) Requests the tile atz/x/y, delivering the result tocallbackon the event dispatch thread.Attribution text that must be displayed over the map.intThe largest zoom level this source serves.intThe smallest zoom level this source serves.intThe tile edge in pixels (almost always 256).booleanisVector()True for MVT vector tiles, false for raster image tiles.
-
Method Details
-
isVector
boolean isVector()True for MVT vector tiles, false for raster image tiles. -
getTileSize
int getTileSize()The tile edge in pixels (almost always 256). -
getMinZoom
int getMinZoom()The smallest zoom level this source serves. -
getMaxZoom
int getMaxZoom()The largest zoom level this source serves. -
getAttribution
String getAttribution()Attribution text that must be displayed over the map. -
fetchTile
Requests the tile atz/x/y, delivering the result tocallbackon the event dispatch thread.
-