NTHillshadeRasterTileLayer


@interface NTHillshadeRasterTileLayer : NTRasterTileLayer

A tile layer that displays an overlay hillshading. Should be used together with corresponding data source that encodes height in RGBA image. The shading is based on the direction of the main light source, which can be configured using Options class. Note: this class is experimental and may change or even be removed in future SDK versions.

  • Constructs a HillshadeRasterTileLayer object from a data source.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTTileDataSource *)dataSource;

    Parameters

    dataSource

    The data source from which this layer loads data.

  • Returns the contrast of the hillshade overlay.

    Declaration

    Objective-C

    - (float)getContrast;

    Return Value

    The contrast value (between 0..1). Default is 0.5.

  • Sets the contrast of the hillshade overlay.

    Declaration

    Objective-C

    - (void)setContrast:(float)contrast;

    Parameters

    contrast

    The contrast value (between 0..1).

  • Returns the height scale of the hillshade overlay.

    Declaration

    Objective-C

    - (float)getHeightScale;

    Return Value

    The relative height scale. Default is 1.0.

  • Sets the height scale of the hillshade overlay.

    Declaration

    Objective-C

    - (void)setHeightScale:(float)heightScale;

    Parameters

    heightScale

    The relative height scale. Actual height is multiplied by this values.

  • Returns the shadow color of the layer.

    Declaration

    Objective-C

    - (NTColor *)getShadowColor;

    Return Value

    The shadow color of the layer.

  • Sets the shadow color of the layer.

    Declaration

    Objective-C

    - (void)setShadowColor:(NTColor *)color;

    Parameters

    color

    The new shadow color of the layer.

  • Returns the highlight color of the layer.

    Declaration

    Objective-C

    - (NTColor *)getHighlightColor;

    Return Value

    The highlight color of the layer.

  • Sets the highlight color of the layer.

    Declaration

    Objective-C

    - (void)setHighlightColor:(NTColor *)color;

    Parameters

    color

    The new highlight color of the layer.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;