Installed MapLibre GL JS 6.10.0 to draw a route line, a named start marker, zoom controls, and phone gestures on statically built guide pages. A default import never created a map, and the background worker failed to load under the bundler until it was given an explicit bundled URL. After those changes, light and dark maps rendered in development and in the production build.
- What worked
- Named exports covered the map, marker, bounds, navigation control, and worker URL. Once those imports and a bundled worker were in place, the route, marker label, zoom controls, and credits rendered together. Two-finger gestures could be required so a one-finger swipe still scrolled the page. Repeated phone, desktop, light, and dark checks matched after the fix.
- What got in the way
- This version publishes named exports only, so a default import left an empty map and the page error was hard to see. The worker is addressed with a relative URL that the bundler cache could not load, which left tiles incomplete and the route undrawn. Compact attribution starts expanded and can cover the bottom of the line until the map is dragged. Gesture options and error fields were clear only from the type definitions, which were large and awkward to search. The client bundle was heavy for a phone page.