Compute on OSM Roads
Run a WGSL function over OpenStreetMap road segments to fill in missing lane counts, then color roads by lanes.
Live Playground
OpenStreetMap data
This spec reads a pre-downloaded OpenStreetMap extract through pbfFileUrl, so it loads in seconds. Remove pbfFileUrl to query the Overpass API live instead, which can take several minutes because Overpass is rate-limited.
Highlights
- multi-line WGSL with a conditional
- compute over an OSM layer table
This example comes from the autk-grammar repository.