Skip to contents

Updates uniforms and the 1D LUT texture in the WebGL2 raster fragment shader without re-transferring the underlying Float32 raster values.

Usage

set_raster_style(map, id, palette = NULL, domain = NULL, hillshade = NULL)

Arguments

map

A glmap widget or glmap_proxy.

id

Raster layer ID.

palette

New palette name ("viridis", "magma", "turbo", "terrain", "RdYlBu").

domain

Optional numeric c(vmin, vmax) contrast stretch limits.

hillshade

Optional logical to toggle real-time GPU hillshading.