The Quality of Life project is a joint venture from Mecklenburg County, the City of Charlotte, and UNCC. It's built with Svelte, TailwindCSS, and Maplibre GL JS. The development and build environment is Vite.
Site: https://mcmap.org/qol
The Quality of Life Explorer includes the main site (index.html), an embed page (embed.html), and a report (report.html). All pages share the same collection of Svelte components.
See the data/README.md file for information on the data format.
The base vector tiles are set a .env file in the root of the project using the VITE_MAPTILES environmental variable, which should point to a Mapbox Vector Tile spec JSON document. Ex:
VITE_MAPTILES="https://server.com/your-style.json"Node.js is required to run the development and build systems, and git is required to use the versioning system.
git clone https://github.com/tobinbradley/quality-of-life-explorercd quality-of-life-explorer
npm installnpm run devNavigate a web browser to http://localhost:3000 to view the HMR live development server.
npm run buildAfter the build is complete, copy the contents of the dist folder to the production web server.
