Class RasterTileSource

java.lang.Object
com.codename1.maps.vector.HttpTileSource
com.codename1.maps.vector.RasterTileSource
All Implemented Interfaces:
TileSource

public final class RasterTileSource extends HttpTileSource
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 Details

    • RasterTileSource

      public RasterTileSource(String urlTemplate, int minZoom, int maxZoom)
      Creates a raster source from a {z}/{x}/{y} image URL template.
  • Method Details

    • openStreetMap

      public static RasterTileSource openStreetMap()
      The standard OpenStreetMap raster basemap (HTTPS, keyless). Subject to the OSM tile usage policy; supply a real tileset for production traffic.