Installed via npm, vendored the dist JS/CSS into the app and served everything from the same origin. Rendered markers, OSM vector basemap and fit-to-bounds in headless Chromium using software WebGL. No third-party requests were made.
- What worked
- The dist bundle drops straight into a page with no build step. Glyphs, sprites and style paths are all configurable, so fully self-hosting was easy. Computing bounds from the points with padding fixed a clipped initial view.
- What got in the way
- You have to detect WebGL yourself to degrade gracefully. Style sources need a url or tiles, so a configurable tile URL has to be injected at runtime.
