Package 

Class BitmapTileSourceBase

    • Constructor Detail

      • BitmapTileSourceBase

        BitmapTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding)
        Constructor
        Parameters:
        aName - a human-friendly name for this tile source.
        aZoomMinLevel - the minimum zoom level this tile source can provide
        aZoomMaxLevel - the maximum zoom level this tile source can provide
        aTileSizePixels - the tile size in pixels this tile source provides
        aImageFilenameEnding - the file name extension used when constructing the filename
      • BitmapTileSourceBase

        BitmapTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, String aCopyrightNotice)
        Constructor
        Parameters:
        aName - a human-friendly name for this tile source.
        aZoomMinLevel - the minimum zoom level this tile source can provide
        aZoomMaxLevel - the maximum zoom level this tile source can provide
        aTileSizePixels - the tile size in pixels this tile source provides
        aImageFilenameEnding - the file name extension used when constructing the filename
    • Method Detail

      • ordinal

         int ordinal()

        An ordinal identifier for this tile source

      • name

         String name()

        A human-friendly name for this tile source

      • getMinimumZoomLevel

         int getMinimumZoomLevel()

        Get the minimum zoom level this tile source can provide.

      • getMaximumZoomLevel

         int getMaximumZoomLevel()

        Get the maximum zoom level this tile source can provide.

      • getTileSizePixels

         int getTileSizePixels()

        Get the tile size in pixels this tile source provides.

      • getDrawable

         Drawable getDrawable(String aFilePath)

        Get a rendered Drawable from the specified file path.

        Parameters:
        aFilePath - a file path
      • getTileRelativeFilenameString

         String getTileRelativeFilenameString(long pMapTileIndex)

        Get a unique file path for the tile. This file path may be used to store the tile on a filesystem and performance considerations should be taken into consideration. It can includemultiple paths. It should not begin with a leading path separator.

        Parameters:
        pMapTileIndex - the tile
      • getCopyrightNotice

         String getCopyrightNotice()

        Returns an I18N sensitive string representing the copy right notice (if any) of the tile source