buildingTC.com
Modernized map-only rebuild of the original tcplatmap app.
- Install deps:
npm install- Generate
data/sales.json(offline, using the bundled legacy ArcGIS export):
npm run data:convert:legacy-sales- Start the server:
npm run devOpen http://localhost:8080.
- Copy env template:
cp .env.example .env- Set
ARCGIS_SALES_URLin.envto the ArcGIS layer/queryendpoint, then run:
npm run data:fetch:salesThe 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.jsonThen 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.
The original 2014-era app (auth + API demos + Mongo) is preserved under legacy/ and is not used by the current server.