Skip to content
michaelcolensoPublic

About

a plat map for Traverse City, Michigan built with d3.js.

Resources

Stars

12 stars

Watchers

1 watching

Forks

Repository files navigation

Traverse City Plat Map

buildingTC.com

Modernized map-only rebuild of the original tcplatmap app.

Run locally

  1. Install deps:
npm install
  1. Generate data/sales.json (offline, using the bundled legacy ArcGIS export):
npm run data:convert:legacy-sales
  1. Start the server:
npm run dev

Open http://localhost:8080.

Refresh sales data from ArcGIS REST (on-demand)

  1. Copy env template:
cp .env.example .env
  1. Set ARCGIS_SALES_URL in .env to the ArcGIS layer /query endpoint, then run:
npm run data:fetch:sales

Parcel geometry tiles

The map fetches only the geometry the viewport covers, as z14 tiles, instead of the whole county in one response (~56k parcels, 3.6 MB gzipped). Locally the dev server slices the bundled extract in memory, so there is nothing to build.

For production, build the tiles and upload them alongside county-simplified.geojson:

node scripts/build-r2-geometry.js     # writes data/seed/county-simplified.geojson
npm run data:build:tiles              # writes tiles/, tiles-manifest.json, search-index.json

Then put the three artifacts in the tcplatmap-geometry R2 bucket, preserving paths (tiles/14/<x>/<y>.geojson, tiles-manifest.json, search-index.json).

The client asks for tiles-manifest.json first and falls back to the whole /api/geojson file when it is missing, so the map keeps working on a deployment whose bucket has no tiles yet — uploading them is what switches it over.

Legacy code

The original 2014-era app (auth + API demos + Mongo) is preserved under legacy/ and is not used by the current server.

About

a plat map for Traverse City, Michigan built with d3.js.

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages