Class OpenStreetMapTileSource

java.lang.Object
it.tidalwave.mapviewer.spi.TileSourceSupport
it.tidalwave.mapviewer.OpenStreetMapTileSource
All Implemented Interfaces:
Projection, TileSource
Direct Known Subclasses:
OpenTopoMapTileSource

public class OpenStreetMapTileSource extends TileSourceSupport
The OpenStreetMap source of map tiles.
Author:
Fabrizio Giudici
  • Field Details

  • Constructor Details

    • OpenStreetMapTileSource

      public OpenStreetMapTileSource()
      Creates a new instance.
    • OpenStreetMapTileSource

      protected OpenStreetMapTileSource(int maxZoom, @Nonnull String pattern, @Nonnull String displayName, @Nonnull String cachePrefix)
      Constructor for subclasses.
      Parameters:
      maxZoom - the maximum allowed zoom level
      pattern - the URI pattern
      displayName - the display name of the provider
      cachePrefix - the prefix for the cache
  • Method Details

    • getTileUri

      @Nonnull public final URI getTileUri(int column, int row, int zoom)
      Returns the URI for the tile at the given position with the given zoom level..
      Parameters:
      column - the tile column
      row - the tile row
      zoom - the zoom level
      Returns:
      the URI for the tile at the given position with the given zoom level
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object