This is a lightweight map viewer built with SvelteKit, MapLibre GL JS, and Protomaps PMTiles. It loads a local .pmtiles
file and renders it with a clean vector style using protomaps-themes-base
.
.pmtiles
filegit 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!