From e1c32abec17a326d4fc7db0fc6861ec1f8d3499c Mon Sep 17 00:00:00 2001 From: David Hochbaum Date: Mon, 11 Mar 2024 14:22:12 -0400 Subject: [PATCH 01/44] Added icons with links --- app/components/layer-record-views/tax-lot.js | 18 ++++- .../components/layer-record-views/tax-lot.hbs | 67 ++++++++++++++++++- config/icons.js | 7 ++ public/google-maps-icon.svg | 10 +++ 4 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 public/google-maps-icon.svg diff --git a/app/components/layer-record-views/tax-lot.js b/app/components/layer-record-views/tax-lot.js index 07c21eda..11be750b 100644 --- a/app/components/layer-record-views/tax-lot.js +++ b/app/components/layer-record-views/tax-lot.js @@ -325,6 +325,13 @@ export default class TaxLotRecordComponent extends LayerRecordComponent { return `${boroLookup[cdborocode]} Community District ${cd}`; } + get boroSlashCd() { + const borocd = this.model.cd; + const cdborocode = `${borocd}`.substring(0, 1); + const cd = parseInt(`${borocd}`.substring(1, 3), 10).toString(); + return `${boroLookup[cdborocode].replace(' ', '-').toLowerCase()}/${cd}`; + } + get cdURLSegment() { const borocd = this.model.cd; const borocode = this.model.borocode; // eslint-disable-line prefer-destructuring @@ -333,6 +340,13 @@ export default class TaxLotRecordComponent extends LayerRecordComponent { return `${cleanBorough}/${cd}`; } + get googleMapsURL() { + const encodedAddress = encodeURIComponent( + `${this.model.address}, ${this.model.zipcode}` + ); + return `https://www.google.com/maps/search/?api=1&query=${encodedAddress}`; + } + get landusename() { return landuseLookup[this.model.landuse]; } @@ -441,7 +455,9 @@ export default class TaxLotRecordComponent extends LayerRecordComponent { } get digitalTaxMapLink() { - return `https://propertyinformationportal.nyc.gov/parcels/${this.model.condono ? 'condo' : 'parcel'}/${this.model.bbl}`; + return `https://propertyinformationportal.nyc.gov/parcels/${ + this.model.condono ? 'condo' : 'parcel' + }/${this.model.bbl}`; } get zoningMapLink() { diff --git a/app/templates/components/layer-record-views/tax-lot.hbs b/app/templates/components/layer-record-views/tax-lot.hbs index acfe3a56..f1efa3c0 100644 --- a/app/templates/components/layer-record-views/tax-lot.hbs +++ b/app/templates/components/layer-record-views/tax-lot.hbs @@ -20,7 +20,7 @@ {{this.model.address}}, {{this.model.zipcode}} -

+

{{this.boroname}} (Borough {{this.model.borocode}}) @@ -34,6 +34,71 @@ Lot {{this.model.lot}}

+ +
+ + + View this address in Cyclomedia Street View + + + + + + + View nearby projects in the Zoning Application Portal + + + + + + + View Decennial Census and ACS data for the + Boro, + Community District,
+ City Council District, and + more geographic area types in Population FactFinder + + + + + + + View nearby + Capital Projects, + Housing Development,
+ and Facilities in Capital Planning Explorer + + + + + + View + Citywide, + Borough, + and Community District
equity data in the Equitable Development Data Explorer + + + + + + View the street map for the area + + + + + + View data for the community district in Community District Profiles + + + + + + View this address in Google Maps + + + +
+ {{#if this.model.zonedist1}}