-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathindex.html
226 lines (218 loc) · 10 KB
/
index.html
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
---
layout: default
---
<div class='row'>
<div class='col-md-4'>
<div class="panel-group" id="info_accordion">
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">
<a data-toggle="collapse" data-parent="#view_accordion" href="#info_collapse" id="a_info_accordion">
<i class='fa fa-question-circle'></i>
What is this?
</a>
</p>
</div>
<div id="info_collapse" class="panel-collapse collapse">
<div class="panel-body">
<p>2nd City Zoning is an interactive map that lets you:</p>
<ul>
<li>
find out <strong>how your building is zoned</strong>
</li>
<li>
learn <strong>where to locate your business</strong>
</li>
<li>
explore <strong>zoning patterns</strong> throughout the city
</li>
</ul>
<p>
To make Chicago's zoning code digestible by humans, we took inspiration from one of our favorite games: <a href="http://en.wikipedia.org/wiki/SimCity_2000">Sim City 2000</a>.
</p>
<p>
It started with the color scheme: <strong style='color: #7DD67D;'>green</strong>
for residential, <strong style='color: #7474D7;'>blue</strong>
for commercial and <strong style='color: #DCDC7F;'>yellow</strong>
for industrial. (This oversimplifies things a bit, <a href='/about#zoning-categories'>read the full story</a>.)
</p>
<p>From there we got a little carried away. Graphics, sounds, music, oh my.</p>
<p>We had a lot of fun making this, so dive in and explore!</p>
<p class='pull-right'>
<a class='btn btn-danger btn-sm' href='#' id='close_info'>Ok, thanks!</a>
<a class='btn btn-sm' href='/about'>Read more »</a>
</p>
</div>
</div>
</div>
</div>
<div class='well'>
<div class="form-group">
<div class="zone-header">
<label class="h5" for="search_address">Find a Chicago address's zoning</label>
<small>(<a id='findMe' href='#'>find me</a>)</small>
</div>
<input class='form-control' id='search_address' placeholder='121 N La Salle St. #107, Chicago, IL 60602' type='text'>
</div>
<button class='btn btn-danger btn-sm' id='btnSearch' type='button'>
<i class='fa fa-search'></i>
Search
</button>
<button class='btn btn-default btn-sm' id='reset'>
<i class='fa fa-refresh'></i>
Reset
</button>
</div>
<div class='well hidden-phone'>
<h5>
Zoning type
<small>(<a href='/zones'>what's that?</a>)</small>
</h5>
<div class='row'>
<div class='col-sm-5'>
<ul class='list-unstyled zones'>
<li>
<label data-content='Houses and apartment buildings. No stores, offices, or factories are allowed. Schools, churches, police stations and the like are ok, though.'>
<img alt='Residential' src='/images/icons/residential.png'>
Residential
</label>
</li>
<li>
<label data-content='From bodegas to big boxes, these districts are for stores and offices. Above-ground floor apartments are usually allowed. Includes Business (B), Commercial (C) and most Downtown (D) districts.'>
<img alt='Commercial' src='/images/icons/commercial.png'>
Commercial
</label>
</li>
<li>
<label data-content="Factories, warehouses, freight, junkyards. All the heavy duty stuff in Chicago's industrial corridors, as well as fourteen special Planned Manufacturing Districts (PMD).">
<img alt='Industrial' src='/images/icons/industrial.png'>
Industrial
</label>
</li>
</ul>
</div>
<div class='col-sm-7'>
<ul class='list-unstyled zones'>
<li>
<label data-content='Tall buildings, hospital campuses, and other large developments that must be negotiated with city planners.'>
<img alt='Planned Development' src='/images/icons/government.png'>
Planned Development
</label>
</li>
<li>
<label data-content='Bits of land designed to protect roads, bus ways, bike trails, and rail lines.'>
<img alt='Transportation' src='/images/icons/trains.png'>
Transportation
</label>
</li>
<li>
<label data-content='Protected land set side for public parks, open space, beaches, and cemeteries.'>
<img alt='Parks and Open Space' src='/images/icons/parks-entertainment.png'>
Parks and Open Space
</label>
</li>
</ul>
</div>
</div>
</div>
<div class='well hidden-phone'>
<h5>
Sound effects
<a href='#' id='sound_effects_toggle' class='label label-default'>
<i class='fa fa-volume-off'></i>
Off
</a>
</h5>
<div id='jquery_jplayer'></div>
<!-- Using the cssSelectorAncestor option with the default cssSelector class names to enable control association of standard functions using built in features -->
<div id='jp_container'>
<h5>
Music
<a class='jp-play label label-default' href='#'>
<i class='fa fa-play'></i> Play
</a>
<a class='jp-pause label label-default' href='#'>
<i class='fa fa-pause'></i> Pause
</a>
<a class='jp-stop label label-default' href='#'>
<i class='fa fa-stop'></i> Stop
</a>
</h5>
<ul class='nav nav-pills' id='jplayer-tracks'>
<li>
<a class='track track-default' href='/resources/audio/sim_city_2000_theme.mp3'>Sim City Theme</a>
</li>
<li>
<a class='track' href='/resources/audio/sim_city_2000_moogycity.mp3'>Moogy City</a>
</li>
<li>
<a class='track' href='/resources/audio/sim_city_2000_city_shimmy.mp3'>City Shimmy</a>
</li>
</ul>
</div>
</div>
<p>Questions? <a href='mailto:[email protected]'><i class='fa fa-envelope'></i> Email us</a>!</p>
</div>
<div class='col-md-8'>
<div id='mapCanvas'></div>
<span class='pull-right'>
Data accurate as of Oct 21, 2024. By <a class='yay-link' href='https://datamade.us'>DataMade</a>, <a class='yay-link' href='http://derekeder.com'>Derek Eder</a>, and <a href='https://jpvelez.contently.com'>Juan-Pablo Velez</a><a class='simcopter' href='#'>.</a>
</span>
</div>
</div>
<audio id='reticulating-splines' src='/resources/audio/effects/reticulating_splines.mp3'></audio>
<audio id='explosion' src='/resources/audio/effects/explosion.mp3'></audio>
<audio id='mouse-click' src='/resources/audio/effects/click.mp3'></audio>
<audio id='yay' src='/resources/audio/effects/yay.mp3'></audio>
<audio id='simcopter-one' src='/resources/audio/effects/simcopter_one.mp3'></audio>
<style id='second-city-zoning-styles'>
#city_of_chicago_zoning{
polygon-fill: #eee;
polygon-opacity: 0.35;
line-color: #666;
line-width: 1;
line-opacity: .5;
[zoom<=9] { line-width: 0.1; }
[zoom=10] { line-width: .2; }
[zoom=11] { line-width: .3; }
[zoom=12] { line-width: .4; }
[zoom=13] { line-width: .5; }
}
#city_of_chicago_zoning{
[zoom>=14][zone_class=~".*1"] { polygon-opacity: 0.15; }
[zoom>=14][zone_class=~".*1.5"] { polygon-opacity: 0.15; }
[zoom>=14][zone_class=~".*2"] { polygon-opacity: 0.25; }
[zoom>=14][zone_class=~".*3"] { polygon-opacity: 0.35; }
[zoom>=14][zone_class=~".*3.5"] { polygon-opacity: 0.45; }
[zoom>=14][zone_class=~".*4"] { polygon-opacity: 0.45; }
[zoom>=14][zone_class=~".*4.5"] { polygon-opacity: 0.55; }
[zoom>=14][zone_class=~".*5"] { polygon-opacity: 0.55; }
[zoom>=14][zone_class=~".*5.5"] { polygon-opacity: 0.6; }
[zoom>=14][zone_class=~".*6.*"] { polygon-opacity: 0.6; }
[zoom>=14][zone_class=~".*7.*"] { polygon-opacity: 0.6; }
[zoom>=14][zone_class=~".*12.*"] { polygon-opacity: 0.65; }
[zoom>=14][zone_class=~".*16.*"] { polygon-opacity: 0.65; }
[zoom>=14][zone_class=~"P.*"] { polygon-opacity: 0.35; }
}
#city_of_chicago_zoning[zone_type= 1] { polygon-fill: #0000ff; }
#city_of_chicago_zoning[zone_type= 2] { polygon-fill: #0000ff; }
#city_of_chicago_zoning[zone_type= 3] { polygon-fill: #ffff00; }
#city_of_chicago_zoning[zone_type= 4] { polygon-fill: #00ff00; }
#city_of_chicago_zoning[zone_type= 5] { polygon-fill: #ff0000; }
#city_of_chicago_zoning[zone_type= 6] { polygon-fill: #ffff00; }
#city_of_chicago_zoning[zone_type= 7] { polygon-fill: #0000ff; }
#city_of_chicago_zoning[zone_type= 8] { polygon-fill: #0000ff; }
#city_of_chicago_zoning[zone_type= 9] { polygon-fill: #00ff00; }
#city_of_chicago_zoning[zone_type=10] { polygon-fill: #0000ff; }
#city_of_chicago_zoning[zone_type=11] { polygon-fill: #666666; }
#city_of_chicago_zoning[zone_type=12] { polygon-fill: #38761d; }
</style>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?libraries=places&key=AIzaSyB_cUp_cIQDC_7_RvpCZHRklMDMbD57Fb0"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
<script type="text/javascript" src="/js/jquery.address.js"></script>
<script type="text/javascript" src="/js/cartodb_lib.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="/js/jquery.csv.min.js" ></script>
<script type="text/javascript" src="/js/map.js"></script>