Road Learning Tool
I developed an interactive Road Learning Tool using React and JavaScript, build using Vite. Its core is a custom MapView that instantiates MapLibre GL to render a satellite basemap overlaid with local vector tiles. The rendering logic manages three distinct layers: base roads, a dynamic highlight layer for user selection, and a symbol layer that renders road labels along geometry paths.
The frontend features a custom lookup index that normalizes user-entered road names and references into stable tokens to drive fuzzy matching for map additions. This drives the input search system, compiling user inputted road additions to the map into real-time MapLibre filters. Quiz Mode reuses this logic to create an interactive loop: isolating target roads, validating user guesses against the index, and instantly updating styling based on answer correctness.
Data is processed via a SQL pipeline that streams large GeoJSON inputs to extract road features. A specialized shell script wraps Tippecanoe to generate local vector tiles (.pbf). Specifically for the tiling process, I used an AI-assisted IDE to optimize Tippecanoe’s CLI configuration, refining normalization and feature-dropping behavior to preserve road detail while keeping tile sizes performant across zoom levels.