layerchart icon indicating copy to clipboard operation
layerchart copied to clipboard

Svelte 5: Geo projection transform timing on initial page load

Open techniq opened this issue 1 year ago • 1 comments

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

techniq avatar Oct 20 '24 03:10 techniq

This might only be present locally, as I haven't been able to produced on the fleshly deployed site

techniq avatar Oct 20 '24 04:10 techniq