Why am I doing this. What am I doing. https://gitlab.com/IvanSanchez/svelte-leaflet @email@example.com @firstname.lastname@example.org
No srsly why. This is triggering one of those bugs from hell where the horizontal offset of a L.Popup depends on the offsetWidth of a detached DOM element before the @email@example.com CSS is loaded async'ly.
- Linking the CSS in the <svelte:head> is async and leads to race conditions
- Doing an import of the CSS requires that the consumer uses some rollup-plugin-css stuff
- Embedding the Leaflet CSS in the component might not be doable and requires an extra build step
Nothing like a good ol' polling hack to work around the issue.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!