forked from sainsb/allegro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
490 lines (448 loc) · 26.1 KB
/
index.htm
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
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<link rel="icon" href="http://www.oregonmetro.gov/favicon.ico" type="image/x-icon">
<meta charset="utf-8">
<title>Allegro</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="//library.oregonmetro.gov/libraries/metro/rlis/css/metro-bootstrap-fix-new.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="//library.oregonmetro.gov/libraries/metro/rlis/css/autosuggest.css" rel="stylesheet">
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/leaflet/0.8-dev/leaflet.css" />
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/leaflet.markercluster/0.4/MarkerCluster.css" />
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/leaflet.markercluster/0.4/MarkerCluster.Default.css" />
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/leaflet.fullscreen/Control.FullScreen.css" />
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/bootstrap-context/context.bootstrap.css" />
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
<link rel="stylesheet" href="//library.oregonmetro.gov/libraries/leaflet.coordinates/0.1.4/Leaflet.Coordinates.css" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="css/bootstrap-select.min.css" />
<!-- <link rel="stylesheet" href="//library.oregonmetro.gov/libraries/leaflet.draw/leaflet.draw.css" /> -->
<style>
.input-sm {
padding-left:6px !important;
}
#map {
border: solid #DDD 1px;
}
.ranger, .indlabel {
display: inline-block;
}
.panelyr.collapsed > .accordion-toggle:before {
/* symbol for "collapsed" panels */
content: "\e080";
cursor: pointer;
/* adjust as needed, taken from bootstrap.css */
}
.panelyr > .accordion-toggle:before {
font-family: 'Glyphicons Halflings';
content: "\e114";
float: left;
color: #999;
margin-top: 3px;
font-size: 10px;
cursor: pointer;
}
.liVectorLegend {
transition-property: border-color;
transition-duration: .2s;
transition-timing-function: linear;
transition-property: background-color;
transition-duration: .2s;
transition-timing-function: linear;
overflow: auto;
margin-bottom: 2px;
}
.liVectorLegend:hover {
border-color: #CCC;
background-color: #FAFAFA;
}
.liTileLegend {
transition-property: border-color;
transition-duration: .2s;
transition-timing-function: linear;
overflow: auto;
margin-bottom: 2px;
}
.liTileLegend:hover {
border-color: #CCC;
background-color: #FAFAFA;
}
li.sortable-placeholder {
border: 1px dashed #CCC;
background: none;
height: 40px;
border-radius: 5px;
margin-bottom: 7px;
}
.btnRemove {
padding:3px 3px 4px 3px;
margin-right:2px;
margin-top:2px;
line-height:5px;
color:#ccc;
transition-property: color;
transition-duration: .2s;
transition-timing-function: linear;
}
.btnRemove:hover {
color:#555;
}
.nav-tabs > li > a {
margin-right: 4px;
line-height: 1.42857143;
border: 1px solid #EEE;
border-radius: 4px 4px 0 0;
}
.nav > li > a {
position: relative;
display: block;
padding: 8px 8px;
}
</style>
</head>
<body>
<div class="navbar navbar-fixed-top" role="navigation">
<div class="container-fluid" style='padding:0;'>
<div class="navbar-inner">
</div>
<div>
<ul class="breadcrumb" style='height:auto;'>
<li><a href="//www.oregonmetro.gov/">Metro</a></li>
<li><a href="//gis.oregonmetro.gov/">GIS</a></li>
<li class='active'>Map Viewer</li>
</ul>
</div>
</div>
</div>
<div class="container-fluid"style='background-color:transparent;'>
<div class="row-fluid" style="margin-bottom:20px;">
<div class="input-group col-xs-3 pull-left form-group" style='margin-right:20px;' id='frmLocSearch' >
<span class="input-group-addon"><i class="glyphicon glyphicon-map-marker"></i> Search</span>
<input class="form-control input-sm has-warning" style="font-size:14px;" id="txtLocSearch" type="text" placeholder="Address, intersection, place..."/>
</div>
<div class="btn-group">
<button class='btn btn-default btn-sm' id='btnAddData'><i class="glyphicon glyphicon-plus"></i> Add Layers</button>
<button class='btn btn-default btn-sm' id='btnBasemap'><i class="glyphicon glyphicon-th"></i> Basemap</button>
<div class="btn-group dropdown keep-open" >
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown">
Heatmap Options <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" style="margin:0;padding:10px 0px 10px 10px;width:250px;">
<li>
Radius<input class='ranger' type="range" min='0.001' max='.03' step='.00005' id='sliRadius' />
<div id='txtRadius' class='ranger'></div>
</li>
<li>
Blur
<input class='ranger' type="range" min='0' max='1' step='.01' id='sliBlur' />
<div id='txtBlur' class='ranger'></div>
</li>
<li>
Resolution
<input class='ranger' type="range" min='3' max='40' step='.25' id='sliResolution' />
<div id='txtResolution' class='ranger'></div>
</li>
<li>
<input type='checkbox' id='chkLocalExtrema' checked='checked' />Use Local Extrema
</li>
<li>
MaxVal
<input disabled class='ranger' type="range" min='1' max='100' value='4' step='.5' id='sliMaxVal' />
<div id='txtMaxVal' class='ranger'></div>
</li>
<li class="divider"></li>
<li>
Max Opacity
<input class='ranger' type="range" min='0' max='1' step='.1' id='sliMaxOpacity' />
<div id='txtMaxOpacity' class='ranger'></div>
</li>
<li>
Min Opacity
<input class='ranger' type="range" min='0' max='1' step='.1' id='sliMinOpacity' />
<div id='txtMinOpacity' class='ranger'></div>
</li>
<li><button id='btnGradient' class="btn btn-sm" style="margin-top:6px;">Different Gradient</button></li>
<li><input type='checkbox' id='chkHeatTip'/>Heatmap Tooltip</li>
</ul>
</div>
</div>
<!--<select class="selectpicker" multiple data-width="100" data-style='btn-sm btn-default' title="options" id="selOptions">
<option>Show Coordinates</option>
</select>-->
<button class='btn btn-success btn-sm pull-right' style="margin-right:20px;" id='btnShare'><i class="glyphicon glyphicon-share glyphicon-white"></i> Share map</button>
<button class='btn btn-info btn-sm pull-right' style="margin-right:20px;" id='btnHelp'><i class="glyphicon glyphicon-question-sign glyphicon-white"></i> Help</button>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid" style="background-color:#fff;">
<div class="col-md-2" id='legend'>
<ul class='sortable' style='list-style:none;padding-left:0;' id="ulVectorLegend"></ul>
<ul class='sortable' style='list-style:none;padding-left:0;' id="ulTileLegend"></ul>
<ul style='list-style:none;padding-left:0;' id="ulHeatmapLegend"></ul>
</div>
<div class="col-md-10" id='map-area' style="margin-bottom:0;">
<div id="map" style="background-color:#fff;width:100%;padding:0;margin-right:10px;margin:00px;"></div>
</div>
</div>
</div>
<div class="modal" id="dataModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Add Data</h4>
</div>
<div class="modal-body" style='overflow:hidden;'>
<ul id="ulSourceTabs" class="nav nav-tabs"></ul>
<div class="tab-content" style="min-height:350px;max-height:350px;overflow-y:scroll;padding-top:10px;">
</div>
</div>
<div class="modal-footer">
<div style='float:left;display:none;' id='imgLoadingData'>
<img src='img/ajax-loader.gif'>
Loading...
</div>
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div class="modal" id="optionsModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Options</h4>
</div>
<div class="modal-body" style='overflow:hidden;'>
<ul id="ulOptionTabs" class="nav nav-tabs">
<li><a href="#mapControls" data-toggle="tab"><i class="fa fa-cogs"></i> Map Controls</a></li>
<li class='active'><a href="#heatmapControls" data-toggle="tab"><i class="fa fa-fire"></i> Heatmap Controls</a></li>
</ul>
<div class="tab-content" style="overflow-y:scroll;padding-top:10px;">
<div class="tab-pane fade" id="mapControls">
</div>
<div class="tab-pane fade in active" id="heatmapControls" >
<h4>Heatmap settings</h4>
</div>
</div>
</div>
<div class="modal-footer">
<div style='float:left;display:none;' id='imgLoadingData'>
<img src='img/ajax-loader.gif'>
Loading...
</div>
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div class="modal fade bs-example-modal-sm" id='dialogModal' tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
</div>
</div>
</div>
<div class="modal fade" id="tableModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 id='tableModalHeader' class="modal-title"></h4>
</div>
<div class="modal-body" style='overflow:hidden;'>
<ul id="tableTabs" class="nav nav-tabs"></ul>
<div class="tab-content" style="max-height:350px;overflow-y:scroll;" id='tableDiv'>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info" id="btnExportToCSV" data-dismiss="modal">Export to CSV</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="selectModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 id='selectModalHeader' class="modal-title">Select Features</h4>
</div>
<div class="modal-body" style='overflow:hidden;'>
<ul id="tableTabs" class="nav nav-tabs"></ul>
<div class="tab-content" style="max-height:350px;overflow-y:scroll;" id='tableDiv'>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info" id="btnExportToCSV" data-dismiss="modal">Export to CSV</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="basemapModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Choose Basemap</h4>
</div>
<div class="modal-body" style='min-height: 350px; max-height: 350px; overflow-y: scroll; padding-top: 10px;' id="basemapContent">
</div>
<div class="modal-footer">
<label style='float:left;'>Opacity:
<input type='range' id='sliBasemap' value="100" min="0" max="100" />
</label>
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div class='modal fade' id='symbolModal'>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Change Symbol</h4>
</div>
<div class="modal-body" style='min-height:300px;' id='pnlSymbolModalBody'>
<ul id="symbolTabs" class="nav nav-tabs">
<li><a href="#singleFill" data-toggle="tab"><i class="fa fa-check-circle-o"></i> Single Color</a></li>
<li class="active"><a href="#uniqueValues" data-toggle="tab"><i class="fa fa-check-circle-o"></i> Categories</a></li>
<li><a href="#classes" data-toggle="tab"><i class="fa fa-check-circle-o"></i> Classes</a></li>
</ul>
<div class="tab-content" style="max-height:300px;overflow:hidden;padding:10px;">
<div class="tab-pane fade" id="singleFill">
<div class='lblStroke'>
Fill:
<div class="input-append color" id='_colSingleFillColor' data-color="rgb(255, 146, 180)" data-color-format="rgb">
<input type="text" class="span2" value="rgb(191,104,131)" id='colSingleFillColor'>
<span class="add-on"><i style="background-color: rgb(255, 146, 180)"></i></span>
</div>
<br />
</div>
Stroke:
<div class="input-append color" id="_colSingleColor" data-color="rgb(255, 146, 180)" data-color-format="rgb">
<input type="text" class="span2" value="rgb(191,104,131)" id="colSingleColor">
<span class="add-on"><i style="background-color: rgb(255, 146, 180)"></i></span>
</div>
<br />
Stroke Weight: <input type="number" id="rngSingleWeight" min="0" max="5" value="1" style="width:45px;">
<div id='singleLegend' class="well well-sm" style="margin-right:10px;margin-top:10px;max-height:150px;overflow-y:auto;"></div>
</div>
<div class="tab-pane fade active in" id="uniqueValues" style='height:242px'>
Color Ramp:
<div class="dropdown" style='display:inline-block;margin-bottom:10px;'>
<button class='btn btn-default' data-target="#" data-toggle="dropdown" class="dropdown-toggle" id='selGradient' style='width:173px;'> <b class="caret"></b></button>
<ul class="dropdown-menu" id='lstRamps' style='height:190px;overflow-y:scroll;'></ul>
</div>
Field: <select data-width='150' data-size="5" class="selectpicker" id='selCatField' title='No Field Selected' style="display:inline-block;"></select>
<br />
<label style='display:inline-block;margin-bottom:0;' >
<b>Stroke:</b> Weight: <input type="number" id="rngCatWeight" min="0" max="5" value="1" style="width:45px;padding:1px;margin-bottom:0px;">
<div class='lblStroke'>
Color:
<div class="color" data-color="rgb(180,180,180)" id='_colCatStroke' data-color-format="rgb" style='display:inline-block;'>
<input type='hidden' value="rgb(180,180,180)" id='colCatStroke' />
<span class="add-on"><i style="background-color: rgb(180,180, 180)"></i></span>
</div>
</div>
</label>
<div id='uniqueValuesLegend' class="well well-sm" style="margin-right:10px;margin-top:10px;max-height:150px;overflow-y:auto;"></div>
</div>
<div class='tab-pane fade' id='classBreaks'>
Classification method:
<select class="selectpicker" id='selMethod' data-width='180' data-style="btn-default">
<option>Unique Values</option>
<option value="1">Equal Interval</option>
<option value='2'>Standard Deviations</option>
<option value='3'>Quantile</option>
<option value='4'>Jenks (Natural Breaks)</option>
</select>
Classes:<input type="number" name="numClasses" value='3' min="1" max="5" style="height:26px;width:45px;margin-bottom:0;padding:0;margin-left:7px;" disabled="disabled"><br />
<div id='classBreaksLegend' class="well well-sm" style="margin-right:10px;margin-top:10px;max-height:150px;overflow-y:auto;"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-small" data-dismiss="modal" id="btnCancel">Cancel</button>
<button type="button" class="btn btn-default btn-small" data-dismiss="modal" id='btnApplySymbol'>Apply</button>
<button type="button" class="btn btn-default btn-small" data-dismiss="modal" id='btnOK'>OK</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="shareModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Share this Map</h4>
</div>
<div class="modal-body" style='min-height: 350px; max-height: 350px; overflow-y: scroll; padding-top: 10px;'>
<h5>Link to this map</h5>
<div><input id="shareLinkTb" readonly style="width:100%;" /></div>
<h5>Embed this map</h5>
<div><textarea id="shareEmbedTb" readonly style="width:100%;"></textarea></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<footer>
<p class="muted text-center">
<a href="http://www.oregonmetro.gov/">© 2013 Oregon Metro</a>
</p>
</footer>
<script type="text/javascript">
var L_PREFER_CANVAS = true;
//all the config files simply add to this global object
var config = {'layers':[], 'token': 'jtJ3qevgR0oEBOZQVIrdF9nCWVlzEOnMqNi62askpes.'};
</script>
<script src="//library.oregonmetro.gov/libraries/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="//library.oregonmetro.gov/libraries/leaflet/0.8-dev/leaflet-src.js" type="text/javascript"></script>
<script src="//gis.oregonmetro.gov/rlisapi2/js/?token=jtJ3qevgR0oEBOZQVIrdF9nCWVlzEOnMqNi62askpes." type="text/javascript"></script>
<script src="//library.oregonmetro.gov/libraries/bootstrap/3.0.3/js/bootstrap.min.js" type="text/javascript"></script>
<!-- <script src="//library.oregonmetro.gov/libraries/bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript"></script> -->
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/leaflet.fullscreen/Control.FullScreen.js"></script>
<!--<script type="text/javascript" src="//library.oregonmetro.gov/libraries/leaflet-hash/leaflet-hash.js"></script>-->
<!-- https://github.com/calvinmetcalf/shapefile-js/ -->
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/leaflet.shapefile/shp.js"></script>
<!--<script type="text/javascript" src="js/shp.js"></script>-->
<!--<script type="text/javascript" src="js/papaparse.min.js"></script>-->
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/colorbrewer/colorbrewer.js"></script>
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/metro/bootstrap-context/context.js"></script>
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/bootstrap-select/1.3.1/js/bootstrap-select.min.js"></script>
<script type='text/javascript' src='//library.oregonmetro.gov/libraries/leaflet.markercluster/0.4/leaflet.markercluster.js'></script>
<script type="text/javascript" src='//cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js'></script>
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/chroma/chroma.min.js"></script>
<script type="text/javascript" src="./js/bootstrap-sortable.js"></script>
<script src="//library.oregonmetro.gov/libraries/html5sortable/jquery.sortable.min.js" type="text/javascript"></script>
<script type="text/javascript" src="./js/jquery.csvToTable.js"></script>
<script type='text/javascript' src='//library.oregonmetro.gov/libraries/jquery.lazyload/jquery.lazyload.min.js'></script>
<script type='text/javascript' src='//library.oregonmetro.gov/libraries/PNG/PNG.js'></script>
<script src="//library.oregonmetro.gov/libraries/heatmapjs/heatmap.min.js"></script>
<script src="//library.oregonmetro.gov/libraries/leaflet.heatmapjs/leaflet-heatmap.js"></script>
<!--<script type="text/javascript" src="./js/rTree.js"></script>-->
<script type="text/javascript" src="//library.oregonmetro.gov/libraries/leaflet.coordinates/0.1.4/Leaflet.Coordinates.min.js"></script>
<script src="//gis.oregonmetro.gov/rlisapi2/js/?token=jtJ3qevgR0oEBOZQVIrdF9nCWVlzEOnMqNi62askpes." type="text/javascript"></script>
<script type="text/javascript" src="./rlis_config.js"></script>
<script type="text/javascript" src="./basemap_config.js"></script>
<script type="text/javascript" src="./rise_config.js"></script>
<script type="text/javascript" src="./trimet_config.js"></script>
<script type="text/javascript" src="./civic_apps_config.js"></script>
<script type="text/javascript" src="./parks_config.js"></script>
<script type="text/javascript" src="./equity_atlas_config.js"></script>
<script type="text/javascript" src="./spatial_data_library_config.js"></script>
<!--<script type="text/javascript" src="./js/script.temp.js"></script>-->
<script type="text/javascript" src="./js/script.js"></script>
</body>
</html>