Skip to main content

source_nearest

Function source_nearest 

Source
pub fn source_nearest(style: &Value, source: &str, zoom: f64) -> bool
Expand description

Whether the slope textures of source are sampled NEAREST. MapLibre prepares one texture per DEM tile, shared by every hillshade layer of the source, and sets its filter when the first layer (in style order) with an offscreen pass creates it: that layer’s resampling applies to all.