Class ImageTiledLayer

    • Constructor Detail

      • ImageTiledLayer

        protected ImageTiledLayer​(TileInfo tileInfo,
                                  Envelope fullExtent)
        Creates an ImageTiledLayer based on tile info and full extent. This constructor needs to be called by any custom layers that extend ImageTiledLayer.
        Parameters:
        tileInfo - info about the tiling scheme
        fullExtent - full extent of the layer
        Throws:
        IllegalArgumentException - if tileInfo is null
        IllegalArgumentException - if fullExtent is null
        Since:
        100.1.0
    • Method Detail

      • setBufferSize

        public void setBufferSize​(ImageTiledLayer.BufferSize bufferSize)
        Sets the buffer size. This is used to indicate whether or not tiles outside of the current visible extent should be fetched. This can be none, small, medium or large.
        Parameters:
        bufferSize - the new buffer size
        Since:
        100.0.0
      • getTileInfo

        public TileInfo getTileInfo()
        Returns information on the tile scheme used by the layer.
        Returns:
        information on the tile scheme used by the layer
        Since:
        100.0.0
      • getTile

        protected abstract byte[] getTile​(TileKey tileKey)
        Gets the encoded bytes that represents a tile for the given tile key. The encoding must match TileInfo specified in the constructor ImageTiledLayer(TileInfo, Envelope).
        Parameters:
        tileKey - key for the expected tile
        Returns:
        the encoded bytes that represent the tile for the given tile key
        Since:
        100.1.0