@nativescript-community/ui-massifmaps
    Preparing search index...

    Interface CustomRasterTileLayerOptions

    A raster layer whose lighting is a shader of your own.

    Same class the hillshade layer is built on, without the hillshading: the shader is given the tile's normal map and the RAW texel (getRawColor()), so it can colour by whatever the source encodes - a hypsometric tint over a DEM, slope bands, anything. The source must define

    vec4 applyLighting(lowp vec4 color, mediump vec3 normal, mediump vec3 surfaceNormal, mediump float intensity);
    

    returning a PREMULTIPLIED colour, transparent where it draws nothing - an opaque black greys out the map below.

    interface CustomRasterTileLayerOptions {
        dataSource?: TileDataSource<any, any>;
        maxOverzoomLevel?: number;
        maxUnderzoomLevel?: number;
        maxVisibleZoom?: number;
        minVisibleZoom?: number;
        opacity?: number;
        preloading?: boolean;
        shaderSource?: string;
        synchronizedRefresh?: boolean;
        tileFilterMode?: RasterTileFilterMode;
        tileSubstitutionPolicy?: TileSubstitutionPolicy;
        updatePriority?: number;
        visible?: boolean;
        visibleZoomRange?: [number, number];
        zoomLevelBias?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dataSource?: TileDataSource<any, any>
    maxOverzoomLevel?: number

    Sets the maximum overzoom level for this layer. If a tile for the given zoom level Z is not available, SDK will try to use tiles with zoom levels Z-1, ..., Z-MaxOverzoomLevel. The default is 6.

    maxUnderzoomLevel?: number
    maxVisibleZoom?: number
    minVisibleZoom?: number
    opacity?: number
    preloading?: boolean

    Sets the state of preloading for this layer. Preloading allows the downloading of tiles that are not currently visible on screen, but are adjacent to ones that are. This means that the user can pan the map without immediately noticing any missing tiles. Enabling this option might introduce a small performance hit on slower devices. It should also be noted that this will considerably increase network traffic if used with online maps. The default is false.

    shaderSource?: string
    synchronizedRefresh?: boolean

    Sets the state of the synchronized refresh flag. If disabled all tiles will appear on screen one by one as they finish loading. If enabled the map will wait for all the visible tiles to finish loading and then show them all on screen together. This is useful for animated tiles.

    tileFilterMode?: RasterTileFilterMode
    tileSubstitutionPolicy?: TileSubstitutionPolicy
    updatePriority?: number
    visible?: boolean
    visibleZoomRange?: [number, number]
    zoomLevelBias?: number

    Sets the zoom level bias for this layer. Higher zoom level bias forces SDK to use more detailed tiles for given view compared to lower zoom bias. The default bias is 0.