From b2033a69559fb73ce687b187171b80e628b8bb86 Mon Sep 17 00:00:00 2001 From: Eva Decker Date: Thu, 28 Jul 2022 11:35:35 -0400 Subject: [PATCH] Add historic districts --- script/datasets.json | 13 ++++++++++--- src/assets/boundaries/index.ts | 10 +++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/script/datasets.json b/script/datasets.json index 5af84ce..f9042d9 100644 --- a/script/datasets.json +++ b/script/datasets.json @@ -22,7 +22,7 @@ }, { "id": "fb", - "datasetName": "Fire Battilion", + "datasetName": "Fire Battalions", "url": "https://data.cityofnewyork.us/api/geospatial/uh7r-6nya?method=export&format=Shapefile", "nameCol": "fire_bn", "nameAlt": null @@ -99,16 +99,23 @@ }, { "id": "nta", - "datasetName": "Neighborhood Tabulation Area", + "datasetName": "Neighborhood Tabulation Areas", "url": "https://data.cityofnewyork.us/api/geospatial/cpf4-rkhq?method=export&format=Shapefile", "nameCol": "ntaname", "nameAlt": "ntacode" }, { "id": "zipcode", - "datasetName": "Zip Code", + "datasetName": "Zip Codes", "url": "https://data.cityofnewyork.us/download/i8iw-xf4u/application%2Fzip", "nameCol": "ZIPCODE", "nameAlt": null + }, + { + "id": "hd", + "datasetName": "Historic Districts", + "url": "https://data.cityofnewyork.us/api/geospatial/xbvj-gfnw?method=export&format=Shapefile", + "nameCol": "area_name", + "nameAlt": null } ] diff --git a/src/assets/boundaries/index.ts b/src/assets/boundaries/index.ts index a79cadf..cc72cd2 100644 --- a/src/assets/boundaries/index.ts +++ b/src/assets/boundaries/index.ts @@ -13,7 +13,8 @@ export type BoundaryId = | 'sa' | 'sd' | 'ss' - | 'zipcode'; + | 'zipcode' + | 'hd'; export interface ILayer { /** Human-readable name, e.g. "Community District" */ @@ -122,6 +123,13 @@ export const layers: ILayers = { icon: '🏘', formatContent: name => format_default(name) }, + hd: { + name: 'Historic District', + name_plural: 'Historic Districts', + sql: `SELECT * FROM all_bounds WHERE id = 'hd'`, + icon: '🗝', + formatContent: name => format_default(name) + }, bid: { name: 'Business Improvement District', name_plural: 'Business Improvement Districts',