Class RasterTileSource
java.lang.Object
com.codename1.maps.vector.HttpTileSource
com.codename1.maps.vector.RasterTileSource
- All Implemented Interfaces:
TileSource
A networked raster (image) XYZ tile source. Use for keyless, zero-config
basemaps such as OpenStreetMap; the engine simply decodes and blits the
returned image rather than styling vector geometry.
-
Constructor Summary
ConstructorsConstructorDescriptionRasterTileSource(String urlTemplate, int minZoom, int maxZoom) Creates a raster source from a{z}/{x}/{y}image URL template. -
Method Summary
Modifier and TypeMethodDescriptionstatic RasterTileSourceThe standard OpenStreetMap raster basemap (HTTPS, keyless).Methods inherited from class HttpTileSource
fetchTile, getAttribution, getMaxZoom, getMinZoom, getTileSize, isVector, setApiKey, setAttribution
-
Constructor Details
-
RasterTileSource
Creates a raster source from a{z}/{x}/{y}image URL template.
-
-
Method Details
-
openStreetMap
The standard OpenStreetMap raster basemap (HTTPS, keyless). Subject to the OSM tile usage policy; supply a real tileset for production traffic.
-