Class TemplatedWMSTileSource

  • All Implemented Interfaces:
    org.openstreetmap.gui.jmapviewer.interfaces.Attributed, org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource, org.openstreetmap.gui.jmapviewer.interfaces.TileSource

    public class TemplatedWMSTileSource
    extends AbstractWMSTileSource
    implements org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
    Tile Source handling WMS providers
    Since:
    8526
    • Constructor Detail

      • TemplatedWMSTileSource

        public TemplatedWMSTileSource​(ImageryInfo info,
                                      Projection tileProjection)
        Creates a tile source based on imagery info
        Parameters:
        info - imagery info
        tileProjection - the tile projection
    • Method Detail

      • getDefaultTileSize

        public int getDefaultTileSize()
        Specified by:
        getDefaultTileSize in interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
        Overrides:
        getDefaultTileSize in class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
      • getTileUrl

        public String getTileUrl​(int zoom,
                                 int tilex,
                                 int tiley)
        Specified by:
        getTileUrl in interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
        Overrides:
        getTileUrl in class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
      • getTileId

        public String getTileId​(int zoom,
                                int tilex,
                                int tiley)
        Specified by:
        getTileId in interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
        Overrides:
        getTileId in class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
      • getHeaders

        public Map<String,​StringgetHeaders()
        Specified by:
        getHeaders in interface org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
      • checkUrl

        public static void checkUrl​(String url)
        Checks if url is acceptable by this Tile Source
        Parameters:
        url - URL to check