layerchart
layerchart copied to clipboard
Svelte 5: Geo projection transform timing on initial page load
If the page is the initially rendered route, there appears to be an odd timing issue where the fitGeojson is calculated too early. Clicking "reset" will fix the scale/transform, or if you came to the page on a subsequent route.
Note: SSR is currently disabled on the docs, so this is only client side routing.
A video better demonstrates what is happening:
https://github.com/user-attachments/assets/b8723a46-ff87-4a11-afa7-63550e25826e
This might only be present locally, as I haven't been able to produced on the fleshly deployed site