sveltekit-maplibre-boilerplate Svelte Themes

Sveltekit Maplibre Boilerplate

This is a template to develop maplibre application by sveltekit

svelte-maplibre-boilerplate

This is a simple and smart boilerplate to integrate maplibre project by using sveltekit.

Usage

Environmental variables

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.

Installation

npm i -g pnpm
pnpm i

Developing

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

Building

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.

License

MIT License

Top categories

Loading Svelte Themes