nvm list-remote
nvm install lts/*
# πΊοΈ SvelteKit + MapLibre + PMTiles Viewer
This is a lightweight map viewer built with [SvelteKit](https://kit.svelte.dev/), [MapLibre GL JS](https://maplibre.org/), and [Protomaps PMTiles](https://protomaps.com/docs/pmtiles/). It loads a local `.pmtiles` file and renders it with a clean vector style using `protomaps-themes-base`.
---
## π Features
- Vector map rendering from a local `.pmtiles` file
- 3D map tilt using pitch and bearing
- Customizable map style
- Fast development with Vite and SvelteKit
---
## π οΈ Getting Started
### 1. Clone the repository
```bash
git clone https://github.com/clsulli95/mapbox-svelte.git
cd your-repo-name
npm install
npm run dev
Visit: http://localhost:5173
Edit src/lib/Map.svelte
to:
.pmtiles
filenpm run dev
β Run the dev servernpm run build
β Build for productionnpm run preview
β Preview the production buildMIT Β© Clint Sullivan
Feel free to open an issue or start a discussion if you run into problems or want to contribute!