MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
The Svelte MapBoxjs-standard-style is a lightweight library that allows the creation of custom Svelte components on a MapBox map. It is SvelteKit and SSR ready, and does not have any client-side dependencies except for the GeoCoder component. The library provides reactive properties for center and zoom, as well as methods for interacting with the map.
To install the Svelte MapBoxjs-standard-style library, follow these steps:
.env file to .env.local..env.local file with your MapBox key.npm run dev to start the development server.The Svelte MapBoxjs-standard-style library allows the creation of custom Svelte components on a MapBox map. It is lightweight, SvelteKit and SSR ready, and does not have any client-side dependencies for the map component. The library provides reactive properties for center and zoom, as well as methods for interacting with the map. Overall, it offers a seamless and customizable map experience for Svelte developers.