Skip to content

Commit

Permalink
Merge pull request #1135 from NYCPlanning/task/13943-update-zoning-ma…
Browse files Browse the repository at this point in the history
…p-links

Update links to regular and historical zoning maps to point to OTI media server
  • Loading branch information
TylerMatteo authored Jun 30, 2023
2 parents cf8192d + ccd7b37 commit c4f43e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/models/map-features/lot.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,12 @@ export default class LotFragment extends MF.Fragment {

@computed('zonemap')
get zoningMapLink() {
return `http://www1.nyc.gov/assets/planning/download/pdf/zoning/zoning-maps/map${this.zonemap}.pdf`;
return `https://s-media.nyc.gov/agencies/dcp/assets/files/pdf/zoning/zoning-maps/map${this.zonemap}.pdf`;
}

@computed('paddedZonemap')
get historicalZoningMapLink() {
return `http://www1.nyc.gov/assets/planning/download/pdf/zoning/zoning-maps/historical-zoning-maps/maps${this.paddedZonemap}.pdf`;
return `https://s-media.nyc.gov/agencies/dcp/assets/files/pdf/zoning/zoning-maps/maps${this.paddedZonemap}.pdf`;
}

@computed('borocode', 'block', 'lot')
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/models/lot-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module('Unit | Model | lot', function(hooks) {
const model = await this.owner.lookup('service:store')
.findRecord('lot', 1);

assert.equal(model.properties.zoningMapLink, 'http://www1.nyc.gov/assets/planning/download/pdf/zoning/zoning-maps/map8d.pdf');
assert.equal(model.properties.zoningMapLink, 'https://s-media.nyc.gov/agencies/dcp/assets/files/pdf/zoning/zoning-maps/map8d.pdf');
});

test('it generates correct links: Historical Zoning Map', async function(assert) {
Expand All @@ -90,7 +90,7 @@ module('Unit | Model | lot', function(hooks) {
const model = await this.owner.lookup('service:store')
.findRecord('lot', 1);

assert.equal(model.properties.historicalZoningMapLink, 'http://www1.nyc.gov/assets/planning/download/pdf/zoning/zoning-maps/historical-zoning-maps/maps08d.pdf');
assert.equal(model.properties.historicalZoningMapLink, 'https://s-media.nyc.gov/agencies/dcp/assets/files/pdf/zoning/zoning-maps/maps08d.pdf');
});

test('it generates correct links: ACRIS', async function(assert) {
Expand Down

0 comments on commit c4f43e9

Please sign in to comment.