Companion

object Companion

Properties

Link copied to clipboard
const val KNOTS_TO_MS_PER_KNOT: Double = 0.5144444

1 kt → m/s (matches wind barb shader / JS 0.5144444).

Link copied to clipboard

JS icon.atlas.interval: 5 kt expressed in m/s (5 * 0.5144444).

Functions

Link copied to clipboard

Mapbox icon-image expression: concat 0 with the knot suffix derived from feature speed (m/s). intervalMs is the bucket width in m/s (e.g. WIND_BARB_INTERVAL_MS); knot step and clamp come from the numeric suffixes in ids.