# 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 Summary

  Constructors
  Constructor
  Description
  `RasterTileSource(String urlTemplate, int minZoom, int maxZoom)`
  Creates a raster source from a `{z}/{x}/{y}` image URL template.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static RasterTileSource`
  `openStreetMap()`
  The standard OpenStreetMap raster basemap (HTTPS, keyless).

  ### Methods inherited from class HttpTileSource

  `fetchTile, getAttribution, getMaxZoom, getMinZoom, getTileSize, isVector, setApiKey, setAttribution`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.