This is a simple and smart boilerplate to integrate maplibre project by using sveltekit.
cp .env.example
vi .env
Add your own API key PUBLIC_MAPTILER_KEY for maptiler. The key can be created at maptiler website here. You probably need to sign up first.
npm i -g pnpm
pnpm i
Once you've created a project and installed dependencies with pnpm install, start a development server:
pnpm dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
pnpm build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
In this repository, it uses Netlify to build and deploy demo website.