Skip to content

Commit

Permalink
Add housing opporunity layers
Browse files Browse the repository at this point in the history
Reference and style layers for
City of Yes for Housing Opportunity

closes #342
  • Loading branch information
TangoYankee committed Dec 26, 2024
1 parent d57cf31 commit 3e4eaa1
Show file tree
Hide file tree
Showing 5 changed files with 319 additions and 7 deletions.
62 changes: 62 additions & 0 deletions data/layer-groups/cho-greater-transit-zone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"id": "cho-greater-transit-zone",
"legend": {
"label": "Greater Transit Zone",
"tooltip": "The rules for Qualifying Residential Sites are modified by a lot’s relationship to the Greater Transit Zone. Being located within the Greater Transit Zone may allow for more or different development opportunities.",
"infolink": "https://zr.planning.nyc.gov",
"icon": {
"type": "rectangle",
"layers": [
{
"fill": "rgba(254, 113, 37, 0.3)",
"stroke": "rgba(254, 113, 37, 0.6)",
"stroke-dasharray": "1"
}
]
}
},
"layers": [
{
"style": {
"id": "cho-greater-transit-zone-line",
"type": "line",
"source": "supporting-zoning",
"source-layer": "cho-greater-transit-zone",
"paint": {
"line-width": {
"stops": [
[
11,
1
],
[
12,
3
]
]
},
"line-color": "rgba(254, 113, 37, 0.6)",
"line-dasharray": [
1,
1
]
}
}
},
{
"style": {
"id": "cho-greater-transit-zone-fill",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-greater-transit-zone",
"paint": {
"fill-color": "rgba(254, 113, 37, 0.3)"
},
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Greater Transit Zone"
}
]
}
239 changes: 239 additions & 0 deletions data/layer-groups/cho-transit-zones.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
{
"id": "cho-transit-zones",
"legend": {
"label": "Transit Zones Parking Geographies",
"infolink": "https://zr.planning.nyc.gov",
"items": [
{
"label": "MN Core and LIC Parking Areas",
"tooltip": "Geography defined in ZR#12-10 Definitions under Manhattan Core and ZR#16-02 Definitions and parking requirements defined in ZR#13-041 Applicability of parking regulations within the Manhattan Core and ZR#16-051 Applicability of parking regulations within the Long Island City area",
"icon": {
"type": "fa-icon",
"layers": [
{
"fa-icon": "square",
"color": "rgba(115, 0, 76, 0.2)"
}
]
}
},
{
"label": "Inner Transit Zone",
"tooltip": "Geography defined in ZR#12-10 Definitions under Transit Zone, Inner and parking requirements defined in ZR#25-21 Required Parking in the Inner Transit Zone",
"icon": {
"type": "fa-icon",
"layers": [
{
"fa-icon": "square",
"color": "rgba(4, 82, 239, 0.2)"
}
]
}
},
{
"label": "Outer Transit Zone",
"tooltip": "Geography defined in ZR#12-10 Definitions under Transit Zone, Outer and parking requirements defined in ZR#25-22 Required Parking in the Outer Transit Zone",
"icon": {
"type": "fa-icon",
"layers": [
{
"fa-icon": "square",
"color": "rgba(0, 197, 255, 0.2)"
}
]
}
},
{
"label": "Special 25-241 Parking Provisions",
"tooltip": "Geography defined in ZR#25-241 Special Provisions for Certain Community Districts",
"icon": {
"type": "square-hatch",
"layers": [
{
"backgroundColor": "rgba(0, 197, 255, 0.2)"
}
]
}
},
{
"label": "Beyond the Greater Transit Zone",
"tooltip": "Parking requirements defined in ZR#25-23 Required Parking beyond the Greater Transit Zone",
"icon": {
"type": "fa-icon",
"layers": [
{
"fa-icon": "square",
"color": "rgba(117, 103, 103, 0.2)"
}
]
}
}
]
},
"layers": [
{
"style": {
"id": "cho-transit-zones-line",
"type": "line",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"line-width": {
"stops": [
[
11,
1
],
[
12,
3
]
]
},
"line-color":"rgba(115, 115, 115, 0.6)",
"line-dasharray": [
1,
1
]
}
}
},
{
"style": {
"id": "cho-transit-zones-fill-core",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"fill-color": "rgba(115, 0, 76, 0.2)"
},
"filter": [
"all",
[
"==",
"name",
"Manhattan Core and Long Island City Parking Areas"
]
],
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Transit Zone Parking Geographies - {{{name}}}"
},
{
"style": {
"id": "cho-transit-zones-fill-inner",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"fill-color": "rgba(4, 82, 239, 0.2)"
},
"filter": [
"all",
[
"==",
"name",
"Inner Transit Zone"
]
],
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Transit Zone Parking Geographies - {{{name}}}"
},
{
"style": {
"id": "cho-transit-zones-fill-outer",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"fill-color": "rgba(0, 197, 255, 0.2)"
},
"filter": [
"all",
[
"==",
"name",
"Outer Transit Zone"
]
],
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Transit Zone Parking Geographies - {{{name}}}"
},
{
"style": {
"id": "cho-transit-zones-fill-special-base",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"fill-color": "rgba(0, 197, 255, 0.2)"
},
"filter": [
"all",
[
"==",
"name",
"Special 25-241 Parking Provisions"
]
],
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Transit Zone Parking Geographies - {{{name}}}"
},
{
"style": {
"id": "cho-transit-zones-fill-special-hatch",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"fill-pattern": "black-diagonal-1px"
},
"filter": [
"all",
[
"==",
"name",
"Special 25-241 Parking Provisions"
]
],
"layout": {}
},
"highlightable": false,
"tooltipable": false
},
{
"style": {
"id": "cho-transit-zones-fill-beyond",
"type": "fill",
"source": "supporting-zoning",
"source-layer": "cho-transit-zones",
"paint": {
"fill-color": "rgba(117, 103, 103, 0.2)"
},
"filter": [
"all",
[
"==",
"name",
"Beyond the Greater Transit Zone"
]
],
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Transit Zone Parking Geographies - {{{name}}}"
}
]
}
14 changes: 7 additions & 7 deletions data/layer-groups/transit-zones.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"id": "transit-zones",
"legend": {
"label": "Transit Zones",
"tooltip": "Transit-accessible areas where parking is optional for new affordable housing units and special rules apply to existing affordable units",
"label": "Appendix I",
"tooltip": "Transit-accessible areas where special streetscape and special parking requirements apply.",
"infolink": "https://www1.nyc.gov/site/planning/zoning/glossary.page#transit_zone",
"icon": {
"type": "rectangle",
"layers": [
{
"fill": "rgba(230, 214, 46, 0.2)",
"stroke": "rgba(230, 214, 46, 0.6)",
"fill": "rgba(49, 151, 149, 0.2)",
"stroke": "rgba(49, 151, 149, 0.6)",
"stroke-dasharray": "1"
}
]
Expand All @@ -35,7 +35,7 @@
]
]
},
"line-color": "rgba(230, 214, 46, 0.6)",
"line-color": "rgba(49, 151, 149, 0.6)",
"line-dasharray": [
1,
1
Expand All @@ -50,13 +50,13 @@
"source": "supporting-zoning",
"source-layer": "transit-zones",
"paint": {
"fill-color": "rgba(230, 214, 46, 0.2)"
"fill-color": "rgba(49, 151, 149, 0.2)"
},
"layout": {}
},
"highlightable": true,
"tooltipable": true,
"tooltipTemplate": "Transit Zone"
"tooltipTemplate": "Appendix I"
}
]
}
10 changes: 10 additions & 0 deletions data/sources/supporting-zoning.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
"sql": "SELECT the_geom_webmercator, cartodb_id AS id, projectnam FROM dcp_inclusionary_housing",
"dataPipeline": true
},
{
"id": "cho-transit-zones",
"sql": "SELECT the_geom_webmercator, cartodb_id AS id, transtzone AS name FROM planninglabs.dcp_cho_transit_zones",
"dataPipeline": true
},
{
"id": "cho-greater-transit-zone",
"sql": "SELECT the_geom_webmercator, cartodb_id AS id FROM dcp_cho_greater_transit_zone",
"dataPipeline": true
},
{
"id": "transit-zones",
"sql": "SELECT the_geom_webmercator, cartodb_id AS id FROM dcp_transitzones",
Expand Down
1 change: 1 addition & 0 deletions schemas/layer-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const legendIconSchema = Joi.object().keys({
'line',
'rectangle',
'fa-icon',
'square-hatch',
).required(),
layers: Joi.when('type', {
is: 'fa-icon',
Expand Down

0 comments on commit 3e4eaa1

Please sign in to comment.