This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
Ilja
fubits.dev
did:plc:6aglx53tojyuwxwueap5og3h
Turns out it's actually quite ease to mount a Svelte component to a @maplibre.org popup:
- create dom element
- use Svelte component API and mount(component, {target})
- set result as content with Popup.setDOMContent()
- (optionally unmount on popup-close event)
REPL: https://svelte.dev/playground/aa3a30635cba42d1bb1b65620095a5fe?version=5.25.10
2025-04-10T10:15:41.381Z