tobinbradley / timemachine

Mecklenburg County historical aerials viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mecklenburg County Time Machine

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

Architecture

Architecture

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.

Using the project

Node.js is required to run the development and build systems, and git is required to use the versioning system.

Clone the project

git clone https://github.com/tobinbradley/timemachine

Install dependencies

cd timemachine
npm install

Start the development server

npm run dev

Navigate a web browser to http://localhost:3000 to view the HMR live development server.

Build for production

npm run build

After the build is complete, copy the contents of the dist folder to the production web server.

About

Mecklenburg County historical aerials viewer


Languages

Language:Svelte 66.4%Language:JavaScript 24.6%Language:HTML 6.0%Language:CSS 3.1%