Enum ImageTiledLayer.NoDataTileBehavior
- java.lang.Object
-
- java.lang.Enum<ImageTiledLayer.NoDataTileBehavior>
-
- com.esri.arcgisruntime.layers.ImageTiledLayer.NoDataTileBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<ImageTiledLayer.NoDataTileBehavior>
- Enclosing class:
- ImageTiledLayer
public static enum ImageTiledLayer.NoDataTileBehavior extends Enum<ImageTiledLayer.NoDataTileBehavior>
Determines how a tile request that returns 'NoData' is resampled.Zooming in can result in tile requests with no tiles at the requested level of detail. In this case, there are options that control what to display where the tile should be.
- Since:
- 100.1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLANK
The 'NoData' pixels will show the raster picture as being blank (or disappearing).SHOW
Shows the tiles with 'No Data' stamped over them once you pass the lowest level-of-detail scale.UNKNOWN
This will show the raster picture with the text 'No Data' stamped over it once you pass the lowest level-of-detail scale.UPSAMPLE
Upsample the pixels from a lower level of detail tile.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ImageTiledLayer.NoDataTileBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImageTiledLayer.NoDataTileBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPSAMPLE
public static final ImageTiledLayer.NoDataTileBehavior UPSAMPLE
Upsample the pixels from a lower level of detail tile. This can result in pixelation or blurriness. This is the default behavior for operational layers. If specified for reference layers, will have no effect, since the reference layers are set up to prevent resampling.Sometimes, to see the effect on the map when setting the NoDataTileBehavior, the
Layer.getMaxScale()
value must also be explicitly set. The max scale value may need to be smaller than the level-of-detail setting that was used to create the tiled images in ArcGIS Pro or ArcGIS Desktop. For example, consider an operational image tile layer showing forest cover that was created with the level-of-detail assumption that it was to be viewed above a scale of 5000 (meaning you will not see 'NoData' until you zoom closer to the Earth than a 5000 scale). However, you want to be able to zoom in closer to the Earth surface, say down to 3000 or 300. By usingLayer.setMaxScale(double)
to set the max scale to a number smaller than 5000, you will be able to zoom in closer to the Earth and see the effects of changing the `NoDataTileBehavior` enumerations.- Since:
- 100.1.0
-
BLANK
public static final ImageTiledLayer.NoDataTileBehavior BLANK
The 'NoData' pixels will show the raster picture as being blank (or disappearing). This is the default behavior for basemap reference layers.- Since:
- 100.1.0
-
SHOW
public static final ImageTiledLayer.NoDataTileBehavior SHOW
Shows the tiles with 'No Data' stamped over them once you pass the lowest level-of-detail scale.- Since:
- 100.1.0
-
UNKNOWN
public static final ImageTiledLayer.NoDataTileBehavior UNKNOWN
This will show the raster picture with the text 'No Data' stamped over it once you pass the lowest level-of-detail scale.- Since:
- 100.1.0
-
-
Method Detail
-
values
public static ImageTiledLayer.NoDataTileBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageTiledLayer.NoDataTileBehavior c : ImageTiledLayer.NoDataTileBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageTiledLayer.NoDataTileBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-