-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathenvironment.js
469 lines (444 loc) · 16.6 KB
/
environment.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
const HOST = process.env.API_HOST || 'https://layers-api.planninglabs.nyc';
const CARTO_USER = process.env.CARTO_USER || 'planninglabs';
module.exports = function (environment) {
const ENV = {
metricsAdapters: [
{
name: 'MatomoTagManager',
environments: ['development', 'production', 'test'],
config: {
matomoUrl: 'nycplanning.matomo.cloud',
containerId: 'FkkxRc58',
},
},
],
modulePrefix: 'labs-zola',
environment,
rootURL: '/',
locationType: 'auto',
host: HOST,
namespace: 'v1',
zapApiHost: 'https://zap-api-production.herokuapp.com',
gReCaptcha: {
jsUrl: 'https://www.google.com/recaptcha/api.js?render=explicit',
siteKey: '6LeOMr0ZAAAAAD2O8q7y7JjJKiN-zkBGZIIjp1mL',
},
fastboot: {
hostWhitelist: [
'https://planninglabs.carto.com/**',
'carto.com',
'planninglabs.carto.com',
/^localhost:\d+$/,
'dry-thicket-91267.herokuapp.com',
],
},
defaultLayerGroupState: [
{ id: 'zoning-districts', visible: true },
{ id: 'street-centerlines', visible: true },
{ id: 'commercial-overlays', visible: true },
{ id: 'zoning-map-amendments', visible: false },
{ id: 'zoning-map-amendments-pending', visible: false },
{
id: 'special-purpose-districts',
visible: false,
layers: [{}, { clickable: true, highlightable: true }],
},
{ id: 'special-purpose-subdistricts', visible: false },
{ id: 'limited-height-districts', visible: false },
{ id: 'mandatory-inclusionary-housing', visible: false },
{ id: 'inclusionary-housing', visible: false },
{ id: 'cho-greater-transit-zone', visible: false },
{ id: 'cho-transit-zones', visible: false },
{ id: 'transit-zones', visible: false },
{ id: 'fresh', visible: false },
{ id: 'low-density-growth-mgmt-areas', visible: false },
{ id: 'coastal-zone-boundary', visible: false },
{ id: 'waterfront-access-plan', visible: false },
{ id: 'historic-districts', visible: false },
{ id: 'floodplain-efirm2007', visible: false },
{ id: 'floodplain-pfirm2015', visible: false },
{ id: 'appendixj-designated-mdistricts', visible: false },
{ id: 'business-improvement-districts', visible: false },
{ id: 'industrial-business-zones', visible: false },
{ id: 'boroughs', visible: false },
{ id: 'community-districts', visible: false },
{ id: 'nyc-council-districts-combined', visible: false },
{ id: 'ny-senate-districts', visible: false },
{ id: 'assembly-districts', visible: false },
{ id: 'neighborhood-tabulation-areas', visible: false },
{ id: 'subway', visible: true },
{ id: 'building-footprints', visible: true },
{ id: 'three-d-buildings', visible: false },
{ id: 'aerials', visible: false },
{ id: 'tax-lots', visible: true, layers: [{ tooltipable: true }] },
{ id: 'landmarks', visible: false },
{ id: 'e-designations', visible: false },
],
specialDistrictCrosswalk: [
['Special Grand Concourse Preservation District', ['C', 'bronx']],
['Special City Island District', ['CD', 'bronx']],
['Special Hunts Point District', ['HP', 'bronx']],
['Special Harlem River Waterfront District', ['HRW', 'bronx']],
['Special Jerome Corridor District', ['J', 'bronx']],
['Special Eastchester – East Tremont Corridor', ['ETC', 'bronx']],
['Special Natural Area District-1', ['natural_area', 'bronx']],
['Special Natural Area District-2', ['natural_area', 'bronx']],
['Special Natural Area District-3', ['natural_area', 'bronx']],
['Special Bay Ridge District', ['BR', 'brooklyn']],
['Special Coney Island District', ['CI', 'brooklyn']],
['Special Coney Island Mixed Use District', ['CO', 'brooklyn']],
['Special Downtown Brooklyn District', ['DB', 'brooklyn']],
['Special Ocean Parkway District', ['OP', 'brooklyn']],
['Special Sheepshead Bay District', ['SB', 'brooklyn']],
['Special Coastal Risk District 1', ['CR-1', 'queens']],
['Special Coastal Risk District 2', ['CR-2', 'queens']],
['Special Coastal Risk District 3', ['CR-3', 'staten-island']],
['Special Coastal Risk District 4', ['CR-4', 'brooklyn']],
['Special Limited Commercial District', ['LC', 'citywide']],
[
'Special Mixed Use Dist./Enhanced Comm. Dist. 5',
['mixed_use', 'citywide'],
],
[
'Special Mixed Use Dist./Enhanced Comm. Dist. 6',
['mixed_use', 'citywide'],
],
['Special Mixed Use District (MX-1)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-10)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-11)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-12)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-13)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-14)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-15)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-16)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-17)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-2)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-4)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-5)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-6)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-7)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-8)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-9)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-18)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-19)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-20)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-21)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-22)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-23)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-24)', ['mixed_use', 'citywide']],
['Special Mixed Use District (MX-25)', ['mixed_use', 'citywide']],
[
'Special Fort Totten Natural Area District-4',
['natural_area', 'citywide'],
],
[
'Special Planned Community Preservation District',
['planned_community', 'citywide'],
],
['Special Scenic View District', ['scenic_view', 'citywide']],
[
'Special Enhanced Commercial District 4',
['special_enhanced', 'citywide'],
],
[
'Special Enhanced Commercial District 5',
['special_enhanced', 'citywide'],
],
[
'Special Enhanced Commercial District 6',
['special_enhanced', 'citywide'],
],
[
'Special Enhanced Commercial District 1',
['special_enhanced', 'citywide'],
],
[
'Special Enhanced Commercial District 2',
['special_enhanced', 'citywide'],
],
[
'Special Enhanced Commercial District 3',
['special_enhanced', 'citywide'],
],
[
'Special 125th Street Dist./Transit Land use Dist.',
['125th', 'manhattan'],
],
['Special 125th Street District', ['125th', 'manhattan']],
['Special Battery Park City District', ['BPC', 'manhattan']],
['Special Clinton District', ['CL', 'manhattan']],
['Special East Harlem Corridors', ['EHC', 'manhattan']],
[
'Special E. Harlem Corridors/Transit Land Use Dist.',
['EHC', 'manhattan'],
],
['Special Garment Center District', ['GC', 'manhattan']],
['Special Governors Island District', ['GI', 'manhattan']],
['Special Hudson River Park District', ['HRP', 'manhattan']],
['Special Hudson Square District', ['HSQ', 'manhattan']],
['Special Hudson Yards District', ['HY', 'manhattan']],
['Special Inwood District', ['IN', 'manhattan']],
['Special Lincoln Square District', ['L', 'manhattan']],
['Special Little Italy District', ['LI', 'manhattan']],
['Special Lower Manhattan District', ['LM', 'manhattan']],
['Special Midtown District', ['MID', 'manhattan']],
['Special Manhattanville Mixed Use District', ['MMU', 'manhattan']],
['Special Madison Avenue Preservation District', ['MP', 'manhattan']],
['Special Park Improvement District', ['PI', 'manhattan']],
['Special Southern Roosevelt Island District', ['SRI', 'manhattan']],
['Special Transit Land Use District', ['TA', 'manhattan']],
['Special Tribeca Mixed Use District', ['TMU', 'manhattan']],
['Special United Nations Development District', ['U', 'manhattan']],
['Special Union Square District', ['US', 'manhattan']],
['Special West Chelsea District', ['WCh', 'manhattan']],
['Special College Point District', ['CP', 'queens']],
['Special Downtown Far Rockaway District', ['DFR', 'queens']],
['Special Downtown Jamaica District', ['DJ', 'queens']],
['Special Forest Hills District', ['FH', 'queens']],
['Special Long Island City Mixed Use District', ['LIC', 'queens']],
['Special Southern Hunters Point District', ['SHP', 'queens']],
['Special Willets Point District', ['WP', 'queens']],
['Special Bay Street Corridor District', ['BSC', 'staten-island']],
['Special Hillsides Preservation District', ['HS', 'staten-island']],
['Special St. George District', ['SG', 'staten-island']],
['Special South Richmond Development District', ['SRD', 'staten-island']],
['Special Stapleton Waterfront District', ['SW', 'staten-island']],
['Special Gowanus Mixed-Use District', ['G', 'brooklyn']],
['Special SoHo-NoHo Mixed Use District', ['SNX', 'manhattan']],
['Special Brooklyn Navy Yard', ['BNY', 'brooklyn']],
['Special 125th Street District', ['125th', 'manhattan']],
['Special Enhanced Commercial District', ['EC', ' brooklyn']],
],
zoningDistrictOptionSets: [
{
name: 'Commercial Districts',
checked: true,
codes: ['C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8'],
style: {
color: 'rgba(229,0,0,0.6)',
},
},
{
name: 'Manufacturing Districts',
checked: true,
codes: ['M1', 'M2', 'M3'],
style: {
color: 'rgba(207,92,230,0.6)',
},
},
{
name: 'Residence Districts',
checked: true,
codes: ['R1', 'R2', 'R3', 'R4', 'R5', 'R6', 'R7', 'R8', 'R9', 'R10'],
style: {
color: 'rgba(255,234,0,0.6)',
},
},
{
name: 'Parks',
checked: true,
codes: ['PA'],
style: {
color: 'rgba(120,210,113,0.6)',
},
},
{
name: 'Battery Park City',
checked: true,
codes: ['BP'],
style: {
color: 'rgba(128,128,128,0.6)',
},
},
],
commercialOverlaysOptionSets: [
{
name: 'C1-1 through C1-5',
checked: true,
codes: ['C1-1', 'C1-2', 'C1-3', 'C1-4', 'C1-5'],
},
{
name: 'C2-1 through C2-5',
checked: true,
codes: ['C2-1', 'C2-2', 'C2-3', 'C2-4', 'C2-5'],
},
],
floodplainEfirm2007OptionSets: [
{
name: 'V (1% floodplain)',
checked: true,
codes: ['V'],
style: {
color: '#0084a8',
},
tooltip:
"A portion of the area subject to flooding from the 1% annual chance flood and referred to in the Zoning Resolution as the 'high-risk flood zone'. These areas are subject to high velocity wave action (a breaking wave 3 feet high or larger).",
},
{
name: 'A (1% floodplain)',
checked: true,
codes: ['A'],
style: {
color: '#00a9e6',
},
tooltip:
"A portion of the area subject to flooding from the 1% annual chance flood and referred to in the Zoning Resolution as the 'high-risk flood zone'. These areas are not subject to high velocity wave action but are still considered high risk flooding areas.",
},
{
name: 'Shaded X (0.2% floodplain)',
checked: true,
codes: ['Shaded X'],
style: {
color: '#00ffc3',
},
tooltip:
"The area subject to flooding from the 0.2% annual chance flood and referred to in the Zoning Resolution as the 'moderate-risk flood zone'.",
},
],
floodplainPfirm2015OptionSets: [
{
name: 'V (1% floodplain)',
checked: true,
codes: ['V'],
style: {
color: '#0084a8',
},
tooltip:
"A portion of the area subject to flooding from the 1% annual chance flood and referred to in the Zoning Resolution as the 'high-risk flood zone'. These areas are subject to high velocity wave action (a breaking wave 3 feet high or larger).",
},
{
name: 'A (1% floodplain)',
checked: true,
codes: ['A'],
style: {
color: '#00a9e6',
},
tooltip:
"A portion of the area subject to flooding from the 1% annual chance flood and referred to in the Zoning Resolution as the 'high-risk flood zone'. These areas are not subject to high velocity wave action but are still considered high risk flooding areas.",
},
{
name: 'Shaded X (0.2% floodplain)',
checked: true,
codes: ['Shaded X'],
style: {
color: '#00ffc3',
},
tooltip:
"The area subject to flooding from the 0.2% annual chance flood and referred to in the Zoning Resolution as the 'moderate-risk flood zone'.",
},
],
cityCouncilDistrictsOptionSets: [
{
name: '2013-2023',
checked: false,
codes: ['2013'],
style: {
color: '#33D8DC',
},
},
{
name: '2024-2033',
checked: true,
codes: ['2024'],
style: {
color: '#DC333D',
},
},
],
'mapbox-gl': {
accessToken:
'pk.eyJ1IjoiY3dob25nbnljIiwiYSI6ImNpczF1MXdrdjA4MXcycXA4ZGtyN2x5YXIifQ.3HGyME8tBs6BnljzUVIt4Q',
},
'labs-search': {
helpers: [
'geosearch-v2',
'bbl',
'neighborhood',
'zoning-district',
'zoning-map-amendment',
'special-purpose-district',
'commercial-overlay',
],
},
carto: {
username: CARTO_USER,
domain: `https://${CARTO_USER}.carto.com`,
},
fontawesome: {
icons: {
'free-regular-svg-icons': [
'check-square',
'circle',
'dot-circle',
'square',
'circle-xmark',
],
'free-solid-svg-icons': [
'angle-up',
'bookmark',
'caret-down',
'caret-up',
'check-square',
'chevron-down',
'chevron-left',
'chevron-up',
'circle',
'exclamation-triangle',
'external-link-alt',
'home',
'info-circle',
'link',
'map-pin',
'minus',
'pen',
'plus',
'print',
'search',
'spinner',
'square',
'times',
'tree',
'undo',
'window-minimize',
],
},
},
EmberENV: {
EXTEND_PROTOTYPES: false,
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
},
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
};
if (environment === 'development') {
ENV['ember-cli-mirage'] = {
enabled: false,
};
ENV['labs-search'].host = 'https://search-api-staging.herokuapp.com';
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
ENV.APP.autoboot = false;
ENV['labs-search'].host = 'https://search-api-staging.herokuapp.com';
ENV.host = '';
}
if (environment === 'production') {
ENV['labs-search'].host = 'https://search-api-production.herokuapp.com';
}
return ENV;
};