Interface TileSource

    • Method Detail

      • getAuthorization

        java.lang.String getAuthorization()
        Returns:
        the Authorization (may be null).
      • getDefaultTimeToLive

        long getDefaultTimeToLive()
        Returns the default time-to-live (TTL) for cached tiles.
      • getParallelRequestsLimit

        int getParallelRequestsLimit()
        Returns:
        the maximum number of parallel requests which this TileSource supports.
      • getReferer

        java.lang.String getReferer()
        Returns:
        the HTTP referer (may be null).
      • getTileUrl

        java.net.URL getTileUrl​(org.mapsforge.core.model.Tile tile)
                         throws java.net.MalformedURLException
        Returns:
        the download URL for the given Tile.
        Throws:
        java.net.MalformedURLException
      • getTimeoutConnect

        int getTimeoutConnect()
        Returns:
        the connect timeout value in milliseconds.
      • getTimeoutRead

        int getTimeoutRead()
        Returns:
        the read timeout value in milliseconds.
      • getUserAgent

        java.lang.String getUserAgent()
        Returns:
        the HTTP user agent (may be null).
      • getZoomLevelMax

        byte getZoomLevelMax()
        Returns:
        the maximum zoom level which this TileSource supports.
      • getZoomLevelMin

        byte getZoomLevelMin()
        Returns:
        the minimum zoom level which this TileSource supports.
      • hasAlpha

        boolean hasAlpha()
        Returns:
        the if the TileSource supports transparent images.
      • isFollowRedirects

        boolean isFollowRedirects()
        Returns:
        whether or not to follow HTTP redirects.