New viewer [#49] (#549)

app: Rewrite of PMTiles viewer (pmtiles.io) [#49, #551, #555, #556]

* Rewrite the app using SolidJS / Tailwind.
* Make the map view mobile friendly.
* Add an archive inspector for viewing the low level structure of PMTiles.
* Add a tile inspector for viewing a single tile in isolation. 
* Support TileJSON.
* Support raster archives.
This commit is contained in:
Brandon Liu
2025-04-22 11:05:19 +08:00
committed by GitHub
parent c9b7f73f28
commit 731f03d325
34 changed files with 4786 additions and 4032 deletions

View File

@@ -1,15 +1,17 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
import { resolve } from "node:path";
import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react()],
plugins: [solid(), tailwindcss()],
build: {
rollupOptions: {
input: {
mapview: resolve(__dirname, "index.html"),
tileinspect: resolve(__dirname, "tileinspect/index.html")
map: resolve(__dirname, "index.html"),
archive: resolve(__dirname, "archive/index.html"),
tile: resolve(__dirname, "tile/index.html"),
},
},
},
});
})