Mecklenburg County's Time Machine is a public-facing raster imagery viewer, built with Svelte, TailwindCSS, and Leaflet. The development and build environment is Vite.
Site: https://timemachine.mcmap.org
Time machine can draw any z/x/y
raster tiles.
Time Machine defines aerials in src/assets/surveys.json
and overlay layers in src/assets/overlays.js
. If you are a NearMap customer with an api key, you can create a .env
file in the root project folder and create a variable like this:
VITE_NEARTOKEN=your_key
Surveys from NearMap will be integrated with your own aerials defined in src/assets/surveys.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/timemachine
cd timemachine
npm install
npm run dev
Navigate a web browser to http://localhost:3000 to view the HMR live development server.
npm run build
After the build is complete, copy the contents of the dist
folder to the production web server.