From 53fad6784f4a3e0e71feae26bc42453bcd16da93 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 27 Aug 2026 10:50:33 +0200 Subject: [PATCH] fix: repair gauche wasm visualization by pinning maplibre-gl The served `gauche-wasm-map.html` loaded MapLibre GL JS from unpkg with a floating `@latest` version. MapLibre v6 dropped the UMD build entirely: it is now ESM-only, so `dist/maplibre-gl.js` returns HTTP 404. The script tag failed to load, the `maplibregl` global was never defined, and the page died with `Uncaught ReferenceError: maplibregl is not defined`. Overwrite the flat file with the freshly generated artifact from gauche-rs, which pins maplibre-gl to 5.24.0 (last release shipping UMD). The embedded wasm blob also advances: the copy served until now predated gauche-rs 459f467, so it exported only classify_point_wasm and initialize_index_wasm. The new build additionally exports classify_line_wasm and classify_bbox_wasm, which this page does not use. Verified end-to-end in a browser: basemap renders, the module reports ready, central England classifies as left-hand traffic and France as right-hand traffic. Upstream fix: https://github.com/Project-OSRM/gauche-rs/pull/4 Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01P17bfPsp1pf8qQq8bTL9Rs --- gauche-wasm-map.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gauche-wasm-map.html b/gauche-wasm-map.html index 4a960e5..c9860f1 100644 --- a/gauche-wasm-map.html +++ b/gauche-wasm-map.html @@ -4,8 +4,8 @@ Gauche LHT Classifier - - + +