-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscraps.html
More file actions
118 lines (112 loc) · 4.05 KB
/
scraps.html
File metadata and controls
118 lines (112 loc) · 4.05 KB
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
// map.addLayer({
// id: "tracts-medIncome", //use this to play with dynamically generating the breaks !!
// type: "fill",
// source: "tracts",
// paint: {
// "fill-color": [
// "case", ["==", ["get", "medIncome"], null], communityScaleGray,
// ["interpolate",
// ["linear"],
// ["get", "medIncome"],
// 15000,
// medIncomePalette[0],
// 56000,
// medIncomePalette[1],
// 73000,
// medIncomePalette[2],
// 95000,
// medIncomePalette[3],
// 130000,
// medIncomePalette[4]]],
// "fill-outline-color": "white",
// "fill-opacity": [
// "case", ["==", ["get", "medIncome"], null], 0.3,
// ["case",
// ["boolean", ["feature-state", "hover"], false],
// 0.95,
// 0.66
// ]]
// },
// layout: {
// visibility: "visible"
// }
// },
// "settlement-major-label",
// "settlement-subdivision-label",
// "settlement-minor-label"
// )
// map.addLayer({
// id: "tracts-pctCostBurdenedRenters",
// type: "fill",
// source: "tracts",
// paint: {
// "fill-color": [
// "case", ["==", ["get", "pctRent30"], null], communityScaleGray,
// ["interpolate",
// ["linear"],
// ["get", "pctRent30"],
// 0,
// cbRentersPalette[0],
// 0.25,
// cbRentersPalette[1],
// 0.50,
// cbRentersPalette[2],
// 0.60,
// cbRentersPalette[3],
// 0.75,
// cbRentersPalette[4]]],
// "fill-outline-color": "white",
// "fill-opacity": [
// "case", ["==", ["get", "pctRent30"], null], 0.3,
// ["case",
// ["boolean", ["feature-state", "hover"], false],
// 0.95,
// 0.66
// ]]
// },
// layout: {
// visibility: "none"
// }
// },
// "settlement-major-label",
// "settlement-subdivision-label",
// "settlement-minor-label"
// )
// map.addLayer({
// id: "tracts-pctCostBurdenedOwners",
// type: "fill",
// source: "tracts",
// paint: {
// "fill-color": [
// "case", ["==", ["get", "pctOwned30"], null], communityScaleGray,
// ["interpolate",
// ["linear"],
// ["get", "pctOwned30"],
// 0,
// cbOwnersPalette[0],
// 0.11,
// cbOwnersPalette[1],
// 0.15,
// cbOwnersPalette[2],
// 0.22,
// cbOwnersPalette[3],
// 0.35,
// cbOwnersPalette[4],
// ]],
// "fill-outline-color": "white",
// "fill-opacity": [
// "case", ["==", ["get", "pctOwned30"], null], 0.3,
// ["case",
// ["boolean", ["feature-state", "hover"], false],
// 0.95,
// 0.66
// ]]
// },
// layout: {
// visibility: "none"
// }
// },
// "settlement-major-label",
// "settlement-subdivision-label",
// "settlement-minor-label"
// )