-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add plugins #4
Comments
Which plugin do you want to use? |
I think your leaflet svelte code is closer and better to understand for leafletJS users like me. |
@irmanator So sorry for such a late reply, I might have to change the way the leafletjs is added, I did not need the npm version of leafletjs. But I was able to modify this file https://github.com/anoram/leaflet-svelte/blob/master/src/LoadSdk.svelte#L19 like this inside the loader, not really a very pretty solution. I am working on a better solution {
type: "script",
url: `https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.js`,
}, |
It's Ok broh, your codes are inspiring me to do it myself already. LoadSDK.svelte:
Datasource: App.svelte:
Leaflet.svelte:
Checkout this sample on: Eventhough actually i need to make it all offline totally a static web, (without any network, no fetching bla bla...) but beyonk async is good enough to start with. May be you can have any idea? |
i'm wondering how to add new leafle plugin in here. Somekind of sample tutorial. Thank you.
The text was updated successfully, but these errors were encountered: