Open a0a7 opened 6 months ago
Hi @syslev!
Well, that is odd. I only use Vue.js and never tried Svelte, but can you attach a demo project using Svelte and maplibre-gl-measures so that I can have a look?
Thanks!
Issues with solid-start too. mapbox-gl-draw works alright
Hi guys,
Just answered to issue #21 that I think it could be related to this issue. Here is the demo project I created using typescript:
Let me know if this helps you in any way.
Cheers,
Jorge
I'm trying to use this in a SvelteKit app with TypeScript, but i'm not able to get it to work.
There are two approaches I've tried for importing this. Firstly, at the top of my script block using
import MeasuresControl from 'maplibre-gl-measures';
. Doing this yields the following error messageThe second approach only imports the library on the client, like so:
But doing this results in a separate error in the browser console,
I'm basically just wondering how I should go about using this in Svelte. It seems like an invaluable plugin to have, and any help is much appreciated.