The post discusses the process of translating OpenStreetMap data to an HTML5 canvas using Rust and WebAssembly. The author revamps an old project called Line Buddy and explains how they use OpenStreetMap data to create maps. They emphasize using Rust and WebAssembly for their improved data processing capabilities. The post provides an overview of the project setup, building and testing the code, getting map coordinates, calling the Overpass API, writing the Rust code, and drawing on the canvas. The author also discusses processing ways and relations and provides a screenshot of the finished map.
Table of contents
Table of ContentsSetting up the projectCreating a new project with wasm-packBuilding and testing WASM codeGetting map coordinatesCalling the Overpass APIWriting the Rust codeDrawing on the canvasProcessing ways and relationsDrawing all of the other map areasThe finished mapSort: