Class RasterDataSourceConfiguration.Provider

  • java.lang.Object
    • com.here.sdk.mapview.datasource.RasterDataSourceConfiguration.Provider
  • Enclosing class:
    RasterDataSourceConfiguration

    public static final class RasterDataSourceConfiguration.Provider
    extends java.lang.Object

    Configuration of a data provider.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean hasAlphaChannel
      A flag indicating whether the image content contains an alpha channel for transparency.
      java.util.Map<java.lang.String,​java.lang.String> headers
      The optional name-value pairs specifying HTTP headers that are passed with each tile request.
      java.util.List<java.lang.Integer> storageLevels
      The storage levels available for this data source.
      TilingScheme tilingScheme
      The tiling scheme used by this source.
      TileUrlProviderCallback urlProvider
      Provides a function that generates URLs based on tile coordinates and storage level.
    • Constructor Summary

      Constructors 
      Constructor Description
      Provider​(TileUrlProviderCallback urlProvider, TilingScheme tilingScheme, java.util.List<java.lang.Integer> storageLevels)
      Creates a new instance.
      Provider​(TileUrlProviderCallback urlProvider, TilingScheme tilingScheme, java.util.List<java.lang.Integer> storageLevels, boolean hasAlphaChannel, java.util.Map<java.lang.String,​java.lang.String> headers)
      Creates a new instance.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • urlProvider

        @NonNull
        public TileUrlProviderCallback urlProvider

        Provides a function that generates URLs based on tile coordinates and storage level.

      • tilingScheme

        @NonNull
        public TilingScheme tilingScheme

        The tiling scheme used by this source.

      • storageLevels

        @NonNull
        public java.util.List<java.lang.Integer> storageLevels

        The storage levels available for this data source. Supported range [0, 31]. At least one level must be available for this provider to be used as a source of data. At storage level zero, the whole world is represented by one tile. At storage level 1 the world is split in 2x2 tiles (or in 2x1 tiles, depending on the tiling scheme). The tiling process continues in this fashion until sufficient granularity has been achieved. In the XYZ addresing scheme for tiles, z value of the tile key coresponds to the storage level. Depending on the available storage levels and the given camera zoom level, the appropriate z value of the tile key will be determined.

      • hasAlphaChannel

        public boolean hasAlphaChannel

        A flag indicating whether the image content contains an alpha channel for transparency. Default value is false.

      • headers

        @Nullable
        public java.util.Map<java.lang.String,​java.lang.String> headers

        The optional name-value pairs specifying HTTP headers that are passed with each tile request.

    • Constructor Detail

      • Provider

        public Provider​(@NonNull
                        TileUrlProviderCallback urlProvider,
                        @NonNull
                        TilingScheme tilingScheme,
                        @NonNull
                        java.util.List<java.lang.Integer> storageLevels,
                        boolean hasAlphaChannel,
                        @Nullable
                        java.util.Map<java.lang.String,​java.lang.String> headers)

        Creates a new instance.

        Parameters:
        urlProvider -

        Provides a function that generates URLs based on tile coordinates and storage level.

        tilingScheme -

        The tiling scheme used by this source.

        storageLevels -

        The storage levels available for this data source. Supported range [0, 31]. At least one level must be available for this provider to be used as a source of data. At storage level zero, the whole world is represented by one tile. At storage level 1 the world is split in 2x2 tiles (or in 2x1 tiles, depending on the tiling scheme). The tiling process continues in this fashion until sufficient granularity has been achieved. In the XYZ addresing scheme for tiles, z value of the tile key coresponds to the storage level. Depending on the available storage levels and the given camera zoom level, the appropriate z value of the tile key will be determined.

        hasAlphaChannel -

        A flag indicating whether the image content contains an alpha channel for transparency. Default value is false.

        headers -

        The optional name-value pairs specifying HTTP headers that are passed with each tile request.

      • Provider

        public Provider​(@NonNull
                        TileUrlProviderCallback urlProvider,
                        @NonNull
                        TilingScheme tilingScheme,
                        @NonNull
                        java.util.List<java.lang.Integer> storageLevels)

        Creates a new instance.

        Parameters:
        urlProvider -

        Provides a function that generates URLs based on tile coordinates and storage level.

        tilingScheme -

        The tiling scheme used by this source.

        storageLevels -

        The storage levels available for this data source. Supported range [0, 31]. At least one level must be available for this provider to be used as a source of data. At storage level zero, the whole world is represented by one tile. At storage level 1 the world is split in 2x2 tiles (or in 2x1 tiles, depending on the tiling scheme). The tiling process continues in this fashion until sufficient granularity has been achieved. In the XYZ addresing scheme for tiles, z value of the tile key coresponds to the storage level. Depending on the available storage levels and the given camera zoom level, the appropriate z value of the tile key will be determined.