Using MapLibre Plugins with this library #136
-
I'm trying to use plugins from https://maplibre.org/maplibre-gl-js/docs/plugins/ with this library, but I get an unworkable barrage of errors no matter what i do. Is there anywhere someone might have used plugins with svelte-maplibre that I can look at, or am I out of luck? |
Beta Was this translation helpful? Give feedback.
Answered by
dabreegster
Mar 6, 2024
Replies: 1 comment 4 replies
-
Not aware of any issues... if you share some of the code you're trying that might help. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
svelte-maplibre/src/routes/examples/geojson_polygon/+page.svelte
Line 20 in 30e1d66
you'd declare
let map;
somewhere in your script block, then<MapLibre bind:map ... />
Keeping in mind that the map isn't immediately initialized, which is why that example also binds
loaded