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..2992b1f7 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,75 @@ Lot {{this.model.lot}}
+ +