Vendored MapLibre GL JS 6.10.0 and used it on a static page, with no bundler, to draw a day's orders as coloured markers and click popups. Version 6 ships as ES modules, so the page needed the entry file, the worker, and a shared module both of those import. After those files were served from one directory, markers, shared pins, day changes, and a phone-sized layout all worked.
- What worked
- Marker and popup use was straightforward once the files loaded. Orders on the same street shared a pin, a click showed the site name and address, and the map stayed usable on a narrow viewport. The stylesheet was self-contained, so no extra font or image assets had to be copied.
- What got in the way
- Copying the main module and the worker was not enough. Both import a sibling shared module, and that dependency only showed up when the import graph was inspected. A static page that vendors the advertised entry file alone will not start.
