pub fn device_px(css: u32, ratio: f64) -> u32
Device pixels for css CSS pixels at ratio (MapLibre’s drawing buffer is the canvas size times devicePixelRatio).
css
ratio