Class WMSEndpointTileSource

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

    public class WMSEndpointTileSource
    extends AbstractWMSTileSource
    implements org.openstreetmap.gui.jmapviewer.interfaces.TemplatedTileSource
    Class representing ImageryType.WMS_ENDPOINT tile source. It differs from standard WMS tile source that this tile source fetches GetCapabilities from server and uses most of the parameters from there
    Since:
    13733
    • Constructor Detail

      • WMSEndpointTileSource

        public WMSEndpointTileSource​(ImageryInfo info,
                                     Projection tileProjection)
        Create WMSEndpointTileSource tile source
        Parameters:
        info - WMS_ENDPOINT ImageryInfo
        tileProjection - server projection that should be used by this tile source
    • 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
      • getServerProjections

        public List<StringgetServerProjections()
        Returns list of EPSG codes that current layer selection supports.
        Returns:
        list of EPSG codes that current layer selection supports (this may differ from layer to layer)
      • getHeaders

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