-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
626 lines (497 loc) · 45.7 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
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" href="https://dl.dropboxusercontent.com/u/151188090/logos/Div6Logo_PNG_16x16.png" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<title>2014 Performance Measures</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" /> <!-- we will us e this as the styling script for our webmap-->
<link rel="stylesheet" href="css/MarkerCluster.css" />
<link rel="stylesheet" href="css/MarkerCluster.Default.css" />
<link rel="stylesheet" type="text/css" href="css/own_style.css">
<link rel="stylesheet" href="css/label.css" />
<link rel="stylesheet" href="http://k4r573n.github.io/leaflet-control-osm-geocoder/Control.OSMGeocoder.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <!-- this is the javascript file that does the magic-->
<script src="js/Autolinker.min.js"></script>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
</head>
<body>
<div id="map"></div> <!-- this is the initial look of the map. in most cases it is done externally using something like a map.css stylesheet were you can specify the look of map elements, like background color tables and so on.-->
<script src="http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script> <!-- this is the javascript file that does the magic-->
<script src="js/leaflet-hash.js"></script>
<script src="js/label.js"></script>
<script src="http://k4r573n.github.io/leaflet-control-osm-geocoder/Control.OSMGeocoder.js"></script>
<script src="js/leaflet.markercluster.js"></script>
<script src='data/exp_FirstOnSceneFailures.js' ></script>
<script src='data/exp_BalanceofAlarmFailures.js' ></script>
<script src='data/exp_AllIncidents2014.js' ></script>
<script src='data/exp_4.js' ></script>
<script src='data/exp_5.js' ></script>
<script src='data/exp_12.js' ></script>
<script src='data/exp_City.js' ></script>
<script src='data/exp_CSD.js' ></script>
<script src='data/exp_URL.js' ></script>
<script src='data/exp_VRL.js' ></script>
<script src='data/exp_Battalions.js' ></script>
<script src='data/exp_Stations.js' ></script>
<script src='data/exp_Undeveloped.js' ></script>
<script src='data/exp_Remote.js' ></script>
<script src='data/exp_Rural.js' ></script>
<script src='data/exp_Suburban.js' ></script>
<script src='data/exp_Urban.js' ></script>
<script>
var map = L.map('map', { zoomControl:true, maxZoom:18, minZoom:9 }).fitBounds([[34.8227947206,-121.230692251],[35.9346433588,-119.726688348]]);
var hash = new L.Hash(map); //add hashes to html address to easy share locations
var additional_attrib = 'created w. <a href="https://github.com/geolicious/qgis2leaf" target ="_blank">qgis2leaf</a>';
var feature_group = new L.featureGroup([]);
var raster_group = new L.LayerGroup([]);
var basemap_0 = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: additional_attrib + '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'});
var basemap_1 = L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
attribution: additional_attrib + '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'});
basemap_1.addTo(map);
var basemap_2 = L.tileLayer('http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png', {
attribution: additional_attrib + '© <a href="http://www.opencyclemap.org">OpenCycleMap</a>, © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors,<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'});
var layerOrder=new Array();
function pop_Urban(feature, layer) {
var popupContent = '<table><tr><th scope="row">OBJECTID</th><td>' + Autolinker.link(String(feature.properties['OBJECTID'])) + '</td></tr><tr><th scope="row">NAME</th><td>' + Autolinker.link(String(feature.properties['NAME'])) + '</td></tr><tr><th scope="row">PFA1_</th><td>' + Autolinker.link(String(feature.properties['PFA1_'])) + '</td></tr><tr><th scope="row">PFA1_ID</th><td>' + Autolinker.link(String(feature.properties['PFA1_ID'])) + '</td></tr><tr><th scope="row">FID_2006_C</th><td>' + Autolinker.link(String(feature.properties['FID_2006_C'])) + '</td></tr><tr><th scope="row">FID_200604</th><td>' + Autolinker.link(String(feature.properties['FID_200604'])) + '</td></tr><tr><th scope="row">FID_CITY_L</th><td>' + Autolinker.link(String(feature.properties['FID_CITY_L'])) + '</td></tr><tr><th scope="row">FID_RA_ACT</th><td>' + Autolinker.link(String(feature.properties['FID_RA_ACT'])) + '</td></tr><tr><th scope="row">PRA</th><td>' + Autolinker.link(String(feature.properties['PRA'])) + '</td></tr><tr><th scope="row">RUCODE</th><td>' + Autolinker.link(String(feature.properties['RUCODE'])) + '</td></tr><tr><th scope="row">COUNTY_FIR</th><td>' + Autolinker.link(String(feature.properties['COUNTY_FIR'])) + '</td></tr><tr><th scope="row">CITY</th><td>' + Autolinker.link(String(feature.properties['CITY'])) + '</td></tr><tr><th scope="row">BATTALION</th><td>' + Autolinker.link(String(feature.properties['BATTALION'])) + '</td></tr><tr><th scope="row">STATIONIA</th><td>' + Autolinker.link(String(feature.properties['STATIONIA'])) + '</td></tr><tr><th scope="row">AA_AGREE</th><td>' + Autolinker.link(String(feature.properties['AA_AGREE'])) + '</td></tr><tr><th scope="row">COUNTYFEE</th><td>' + Autolinker.link(String(feature.properties['COUNTYFEE'])) + '</td></tr><tr><th scope="row">Shape_Leng</th><td>' + Autolinker.link(String(feature.properties['Shape_Leng'])) + '</td></tr><tr><th scope="row">STAFF</th><td>' + Autolinker.link(String(feature.properties['STAFF'])) + '</td></tr><tr><th scope="row">Auto_Aid</th><td>' + Autolinker.link(String(feature.properties['Auto_Aid'])) + '</td></tr><tr><th scope="row">Shape_Le_1</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_1'])) + '</td></tr><tr><th scope="row">category</th><td>' + Autolinker.link(String(feature.properties['category'])) + '</td></tr><tr><th scope="row">comment</th><td>' + Autolinker.link(String(feature.properties['comment'])) + '</td></tr><tr><th scope="row">Shape_Le_2</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_2'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr><tr><th scope="row">sqMiles</th><td>' + Autolinker.link(String(feature.properties['sqMiles'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_UrbanJSON = new L.geoJson(exp_Urban,{
onEachFeature: pop_Urban,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_UrbanJSON);
layerOrder[layerOrder.length] = exp_UrbanJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_UrbanJSON.addTo(map);
function pop_Suburban(feature, layer) {
var popupContent = '<table><tr><th scope="row">OBJECTID</th><td>' + Autolinker.link(String(feature.properties['OBJECTID'])) + '</td></tr><tr><th scope="row">NAME</th><td>' + Autolinker.link(String(feature.properties['NAME'])) + '</td></tr><tr><th scope="row">PFA1_</th><td>' + Autolinker.link(String(feature.properties['PFA1_'])) + '</td></tr><tr><th scope="row">PFA1_ID</th><td>' + Autolinker.link(String(feature.properties['PFA1_ID'])) + '</td></tr><tr><th scope="row">FID_2006_C</th><td>' + Autolinker.link(String(feature.properties['FID_2006_C'])) + '</td></tr><tr><th scope="row">FID_200604</th><td>' + Autolinker.link(String(feature.properties['FID_200604'])) + '</td></tr><tr><th scope="row">FID_CITY_L</th><td>' + Autolinker.link(String(feature.properties['FID_CITY_L'])) + '</td></tr><tr><th scope="row">FID_RA_ACT</th><td>' + Autolinker.link(String(feature.properties['FID_RA_ACT'])) + '</td></tr><tr><th scope="row">PRA</th><td>' + Autolinker.link(String(feature.properties['PRA'])) + '</td></tr><tr><th scope="row">RUCODE</th><td>' + Autolinker.link(String(feature.properties['RUCODE'])) + '</td></tr><tr><th scope="row">COUNTY_FIR</th><td>' + Autolinker.link(String(feature.properties['COUNTY_FIR'])) + '</td></tr><tr><th scope="row">CITY</th><td>' + Autolinker.link(String(feature.properties['CITY'])) + '</td></tr><tr><th scope="row">BATTALION</th><td>' + Autolinker.link(String(feature.properties['BATTALION'])) + '</td></tr><tr><th scope="row">STATIONIA</th><td>' + Autolinker.link(String(feature.properties['STATIONIA'])) + '</td></tr><tr><th scope="row">AA_AGREE</th><td>' + Autolinker.link(String(feature.properties['AA_AGREE'])) + '</td></tr><tr><th scope="row">COUNTYFEE</th><td>' + Autolinker.link(String(feature.properties['COUNTYFEE'])) + '</td></tr><tr><th scope="row">Shape_Leng</th><td>' + Autolinker.link(String(feature.properties['Shape_Leng'])) + '</td></tr><tr><th scope="row">STAFF</th><td>' + Autolinker.link(String(feature.properties['STAFF'])) + '</td></tr><tr><th scope="row">Auto_Aid</th><td>' + Autolinker.link(String(feature.properties['Auto_Aid'])) + '</td></tr><tr><th scope="row">Shape_Le_1</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_1'])) + '</td></tr><tr><th scope="row">category</th><td>' + Autolinker.link(String(feature.properties['category'])) + '</td></tr><tr><th scope="row">comment</th><td>' + Autolinker.link(String(feature.properties['comment'])) + '</td></tr><tr><th scope="row">Shape_Le_2</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_2'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr><tr><th scope="row">sqMiles</th><td>' + Autolinker.link(String(feature.properties['sqMiles'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_SuburbanJSON = new L.geoJson(exp_Suburban,{
onEachFeature: pop_Suburban,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_SuburbanJSON);
layerOrder[layerOrder.length] = exp_SuburbanJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_SuburbanJSON.addTo(map);
function pop_Rural(feature, layer) {
var popupContent = '<table><tr><th scope="row">OBJECTID</th><td>' + Autolinker.link(String(feature.properties['OBJECTID'])) + '</td></tr><tr><th scope="row">NAME</th><td>' + Autolinker.link(String(feature.properties['NAME'])) + '</td></tr><tr><th scope="row">PFA1_</th><td>' + Autolinker.link(String(feature.properties['PFA1_'])) + '</td></tr><tr><th scope="row">PFA1_ID</th><td>' + Autolinker.link(String(feature.properties['PFA1_ID'])) + '</td></tr><tr><th scope="row">FID_2006_C</th><td>' + Autolinker.link(String(feature.properties['FID_2006_C'])) + '</td></tr><tr><th scope="row">FID_200604</th><td>' + Autolinker.link(String(feature.properties['FID_200604'])) + '</td></tr><tr><th scope="row">FID_CITY_L</th><td>' + Autolinker.link(String(feature.properties['FID_CITY_L'])) + '</td></tr><tr><th scope="row">FID_RA_ACT</th><td>' + Autolinker.link(String(feature.properties['FID_RA_ACT'])) + '</td></tr><tr><th scope="row">PRA</th><td>' + Autolinker.link(String(feature.properties['PRA'])) + '</td></tr><tr><th scope="row">RUCODE</th><td>' + Autolinker.link(String(feature.properties['RUCODE'])) + '</td></tr><tr><th scope="row">COUNTY_FIR</th><td>' + Autolinker.link(String(feature.properties['COUNTY_FIR'])) + '</td></tr><tr><th scope="row">CITY</th><td>' + Autolinker.link(String(feature.properties['CITY'])) + '</td></tr><tr><th scope="row">BATTALION</th><td>' + Autolinker.link(String(feature.properties['BATTALION'])) + '</td></tr><tr><th scope="row">STATIONIA</th><td>' + Autolinker.link(String(feature.properties['STATIONIA'])) + '</td></tr><tr><th scope="row">AA_AGREE</th><td>' + Autolinker.link(String(feature.properties['AA_AGREE'])) + '</td></tr><tr><th scope="row">COUNTYFEE</th><td>' + Autolinker.link(String(feature.properties['COUNTYFEE'])) + '</td></tr><tr><th scope="row">Shape_Leng</th><td>' + Autolinker.link(String(feature.properties['Shape_Leng'])) + '</td></tr><tr><th scope="row">STAFF</th><td>' + Autolinker.link(String(feature.properties['STAFF'])) + '</td></tr><tr><th scope="row">Auto_Aid</th><td>' + Autolinker.link(String(feature.properties['Auto_Aid'])) + '</td></tr><tr><th scope="row">Shape_Le_1</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_1'])) + '</td></tr><tr><th scope="row">category</th><td>' + Autolinker.link(String(feature.properties['category'])) + '</td></tr><tr><th scope="row">comment</th><td>' + Autolinker.link(String(feature.properties['comment'])) + '</td></tr><tr><th scope="row">Shape_Le_2</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_2'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr><tr><th scope="row">sqMiles</th><td>' + Autolinker.link(String(feature.properties['sqMiles'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_RuralJSON = new L.geoJson(exp_Rural,{
onEachFeature: pop_Rural,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_RuralJSON);
layerOrder[layerOrder.length] = exp_RuralJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_RuralJSON.addTo(map);
function pop_Remote(feature, layer) {
var popupContent = '<table><tr><th scope="row">OBJECTID</th><td>' + Autolinker.link(String(feature.properties['OBJECTID'])) + '</td></tr><tr><th scope="row">NAME</th><td>' + Autolinker.link(String(feature.properties['NAME'])) + '</td></tr><tr><th scope="row">PFA1_</th><td>' + Autolinker.link(String(feature.properties['PFA1_'])) + '</td></tr><tr><th scope="row">PFA1_ID</th><td>' + Autolinker.link(String(feature.properties['PFA1_ID'])) + '</td></tr><tr><th scope="row">FID_2006_C</th><td>' + Autolinker.link(String(feature.properties['FID_2006_C'])) + '</td></tr><tr><th scope="row">FID_200604</th><td>' + Autolinker.link(String(feature.properties['FID_200604'])) + '</td></tr><tr><th scope="row">FID_CITY_L</th><td>' + Autolinker.link(String(feature.properties['FID_CITY_L'])) + '</td></tr><tr><th scope="row">FID_RA_ACT</th><td>' + Autolinker.link(String(feature.properties['FID_RA_ACT'])) + '</td></tr><tr><th scope="row">PRA</th><td>' + Autolinker.link(String(feature.properties['PRA'])) + '</td></tr><tr><th scope="row">RUCODE</th><td>' + Autolinker.link(String(feature.properties['RUCODE'])) + '</td></tr><tr><th scope="row">COUNTY_FIR</th><td>' + Autolinker.link(String(feature.properties['COUNTY_FIR'])) + '</td></tr><tr><th scope="row">CITY</th><td>' + Autolinker.link(String(feature.properties['CITY'])) + '</td></tr><tr><th scope="row">BATTALION</th><td>' + Autolinker.link(String(feature.properties['BATTALION'])) + '</td></tr><tr><th scope="row">STATIONIA</th><td>' + Autolinker.link(String(feature.properties['STATIONIA'])) + '</td></tr><tr><th scope="row">AA_AGREE</th><td>' + Autolinker.link(String(feature.properties['AA_AGREE'])) + '</td></tr><tr><th scope="row">COUNTYFEE</th><td>' + Autolinker.link(String(feature.properties['COUNTYFEE'])) + '</td></tr><tr><th scope="row">Shape_Leng</th><td>' + Autolinker.link(String(feature.properties['Shape_Leng'])) + '</td></tr><tr><th scope="row">STAFF</th><td>' + Autolinker.link(String(feature.properties['STAFF'])) + '</td></tr><tr><th scope="row">Auto_Aid</th><td>' + Autolinker.link(String(feature.properties['Auto_Aid'])) + '</td></tr><tr><th scope="row">Shape_Le_1</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_1'])) + '</td></tr><tr><th scope="row">category</th><td>' + Autolinker.link(String(feature.properties['category'])) + '</td></tr><tr><th scope="row">comment</th><td>' + Autolinker.link(String(feature.properties['comment'])) + '</td></tr><tr><th scope="row">Shape_Le_2</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_2'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr><tr><th scope="row">sqMiles</th><td>' + Autolinker.link(String(feature.properties['sqMiles'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_RemoteJSON = new L.geoJson(exp_Remote,{
onEachFeature: pop_Remote,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_RemoteJSON);
layerOrder[layerOrder.length] = exp_RemoteJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_RemoteJSON.addTo(map);
function pop_Undeveloped(feature, layer) {
var popupContent = '<table><tr><th scope="row">OBJECTID</th><td>' + Autolinker.link(String(feature.properties['OBJECTID'])) + '</td></tr><tr><th scope="row">NAME</th><td>' + Autolinker.link(String(feature.properties['NAME'])) + '</td></tr><tr><th scope="row">PFA1_</th><td>' + Autolinker.link(String(feature.properties['PFA1_'])) + '</td></tr><tr><th scope="row">PFA1_ID</th><td>' + Autolinker.link(String(feature.properties['PFA1_ID'])) + '</td></tr><tr><th scope="row">FID_2006_C</th><td>' + Autolinker.link(String(feature.properties['FID_2006_C'])) + '</td></tr><tr><th scope="row">FID_200604</th><td>' + Autolinker.link(String(feature.properties['FID_200604'])) + '</td></tr><tr><th scope="row">FID_CITY_L</th><td>' + Autolinker.link(String(feature.properties['FID_CITY_L'])) + '</td></tr><tr><th scope="row">FID_RA_ACT</th><td>' + Autolinker.link(String(feature.properties['FID_RA_ACT'])) + '</td></tr><tr><th scope="row">PRA</th><td>' + Autolinker.link(String(feature.properties['PRA'])) + '</td></tr><tr><th scope="row">RUCODE</th><td>' + Autolinker.link(String(feature.properties['RUCODE'])) + '</td></tr><tr><th scope="row">COUNTY_FIR</th><td>' + Autolinker.link(String(feature.properties['COUNTY_FIR'])) + '</td></tr><tr><th scope="row">CITY</th><td>' + Autolinker.link(String(feature.properties['CITY'])) + '</td></tr><tr><th scope="row">BATTALION</th><td>' + Autolinker.link(String(feature.properties['BATTALION'])) + '</td></tr><tr><th scope="row">STATIONIA</th><td>' + Autolinker.link(String(feature.properties['STATIONIA'])) + '</td></tr><tr><th scope="row">AA_AGREE</th><td>' + Autolinker.link(String(feature.properties['AA_AGREE'])) + '</td></tr><tr><th scope="row">COUNTYFEE</th><td>' + Autolinker.link(String(feature.properties['COUNTYFEE'])) + '</td></tr><tr><th scope="row">Shape_Leng</th><td>' + Autolinker.link(String(feature.properties['Shape_Leng'])) + '</td></tr><tr><th scope="row">STAFF</th><td>' + Autolinker.link(String(feature.properties['STAFF'])) + '</td></tr><tr><th scope="row">Auto_Aid</th><td>' + Autolinker.link(String(feature.properties['Auto_Aid'])) + '</td></tr><tr><th scope="row">Shape_Le_1</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_1'])) + '</td></tr><tr><th scope="row">category</th><td>' + Autolinker.link(String(feature.properties['category'])) + '</td></tr><tr><th scope="row">comment</th><td>' + Autolinker.link(String(feature.properties['comment'])) + '</td></tr><tr><th scope="row">Shape_Le_2</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_2'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr><tr><th scope="row">sqMiles</th><td>' + Autolinker.link(String(feature.properties['sqMiles'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_UndevelopedJSON = new L.geoJson(exp_Undeveloped,{
onEachFeature: pop_Undeveloped,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_UndevelopedJSON);
layerOrder[layerOrder.length] = exp_UndevelopedJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_UndevelopedJSON.addTo(map);
function pop_Stations(feature, layer) {
var popupContent = '<table><tr><th scope="row">name</th><td>' + Autolinker.link(String(feature.properties['name'])) + '</td></tr><tr><th scope="row">aka</th><td>' + Autolinker.link(String(feature.properties['aka'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_StationsJSON = new L.geoJson(exp_Stations,{
onEachFeature: pop_Stations,
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {icon: L.icon({
iconUrl: feature.properties.icon_exp,
iconSize: [24, 24], // size of the icon change this to scale your icon (first coordinate is x, second y from the upper left corner of the icon)
iconAnchor: [12, 12], // point of the icon which will correspond to marker's location (first coordinate is x, second y from the upper left corner of the icon)
popupAnchor: [0, -14] // point from which the popup should open relative to the iconAnchor (first coordinate is x, second y from the upper left corner of the icon)
})
}).bindLabel(feature.properties.aka)
}}
);
feature_group.addLayer(exp_StationsJSON);
layerOrder[layerOrder.length] = exp_StationsJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
exp_StationsJSON.addTo(map);
function pop_Battalions(feature, layer) {
var popupContent = '<table><tr><th scope="row">OBJECTID</th><td>' + Autolinker.link(String(feature.properties['OBJECTID'])) + '</td></tr><tr><th scope="row">BATTALION</th><td>' + Autolinker.link(String(feature.properties['BATTALION'])) + '</td></tr><tr><th scope="row">Label</th><td>' + Autolinker.link(String(feature.properties['Label'])) + '</td></tr><tr><th scope="row">Shape_Leng</th><td>' + Autolinker.link(String(feature.properties['Shape_Leng'])) + '</td></tr><tr><th scope="row">Acres</th><td>' + Autolinker.link(String(feature.properties['Acres'])) + '</td></tr><tr><th scope="row">Shape_Le_1</th><td>' + Autolinker.link(String(feature.properties['Shape_Le_1'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_BattalionsJSON = new L.geoJson(exp_Battalions,{
onEachFeature: pop_Battalions,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_BattalionsJSON);
layerOrder[layerOrder.length] = exp_BattalionsJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
exp_BattalionsJSON.addTo(map);
function pop_VRL(feature, layer) {
var popupContent = '<table><tr><th scope="row">COMMUNITY</th><td>' + Autolinker.link(String(feature.properties['COMMUNITY'])) + '</td></tr><tr><th scope="row">URL_VRL</th><td>' + Autolinker.link(String(feature.properties['URL_VRL'])) + '</td></tr><tr><th scope="row">Est_Acres</th><td>' + Autolinker.link(String(feature.properties['Est_Acres'])) + '</td></tr><tr><th scope="row">Shape_STAr</th><td>' + Autolinker.link(String(feature.properties['Shape_STAr'])) + '</td></tr><tr><th scope="row">Shape_STLe</th><td>' + Autolinker.link(String(feature.properties['Shape_STLe'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_VRLJSON = new L.geoJson(exp_VRL,{
onEachFeature: pop_VRL,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_VRLJSON);
layerOrder[layerOrder.length] = exp_VRLJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_VRLJSON.addTo(map);
function pop_URL(feature, layer) {
var popupContent = '<table><tr><th scope="row">COMMUNITY</th><td>' + Autolinker.link(String(feature.properties['COMMUNITY'])) + '</td></tr><tr><th scope="row">URL_VRL</th><td>' + Autolinker.link(String(feature.properties['URL_VRL'])) + '</td></tr><tr><th scope="row">Est_Acres</th><td>' + Autolinker.link(String(feature.properties['Est_Acres'])) + '</td></tr><tr><th scope="row">Shape_STAr</th><td>' + Autolinker.link(String(feature.properties['Shape_STAr'])) + '</td></tr><tr><th scope="row">Shape_STLe</th><td>' + Autolinker.link(String(feature.properties['Shape_STLe'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_URLJSON = new L.geoJson(exp_URL,{
onEachFeature: pop_URL,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_URLJSON);
layerOrder[layerOrder.length] = exp_URLJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_URLJSON.addTo(map);
function pop_CSD(feature, layer) {
var popupContent = '<table><tr><th scope="row">type</th><td>' + Autolinker.link(String(feature.properties['type'])) + '</td></tr><tr><th scope="row">name</th><td>' + Autolinker.link(String(feature.properties['name'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_CSDJSON = new L.geoJson(exp_CSD,{
onEachFeature: pop_CSD,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_CSDJSON);
layerOrder[layerOrder.length] = exp_CSDJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_CSDJSON.addTo(map);
function pop_City(feature, layer) {
var popupContent = '<table><tr><th scope="row">type</th><td>' + Autolinker.link(String(feature.properties['type'])) + '</td></tr><tr><th scope="row">name</th><td>' + Autolinker.link(String(feature.properties['name'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_CityJSON = new L.geoJson(exp_City,{
onEachFeature: pop_City,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_CityJSON);
layerOrder[layerOrder.length] = exp_CityJSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_CityJSON.addTo(map);
function pop_15(feature, layer) {
var popupContent = '<table><tr><th scope="row">FacilityID</th><td>' + Autolinker.link(String(feature.properties['FacilityID'])) + '</td></tr><tr><th scope="row">Name</th><td>' + Autolinker.link(String(feature.properties['Name'])) + '</td></tr><tr><th scope="row">FromBreak</th><td>' + Autolinker.link(String(feature.properties['FromBreak'])) + '</td></tr><tr><th scope="row">ToBreak</th><td>' + Autolinker.link(String(feature.properties['ToBreak'])) + '</td></tr><tr><th scope="row">Shape_Length</th><td>' + Autolinker.link(String(feature.properties['Shape_Length'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_12JSON = new L.geoJson(exp_12,{
onEachFeature: pop_15,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_12JSON);
layerOrder[layerOrder.length] = exp_12JSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_12JSON.addTo(map);
function pop_8(feature, layer) {
var popupContent = '<table><tr><th scope="row">FacilityID</th><td>' + Autolinker.link(String(feature.properties['FacilityID'])) + '</td></tr><tr><th scope="row">Name</th><td>' + Autolinker.link(String(feature.properties['Name'])) + '</td></tr><tr><th scope="row">FromBreak</th><td>' + Autolinker.link(String(feature.properties['FromBreak'])) + '</td></tr><tr><th scope="row">ToBreak</th><td>' + Autolinker.link(String(feature.properties['ToBreak'])) + '</td></tr><tr><th scope="row">Shape_Length</th><td>' + Autolinker.link(String(feature.properties['Shape_Length'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_5JSON = new L.geoJson(exp_5,{
onEachFeature: pop_8,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_5JSON);
layerOrder[layerOrder.length] = exp_5JSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_5JSON.addTo(map);
function pop_7(feature, layer) {
var popupContent = '<table><tr><th scope="row">FacilityID</th><td>' + Autolinker.link(String(feature.properties['FacilityID'])) + '</td></tr><tr><th scope="row">Name</th><td>' + Autolinker.link(String(feature.properties['Name'])) + '</td></tr><tr><th scope="row">FromBreak</th><td>' + Autolinker.link(String(feature.properties['FromBreak'])) + '</td></tr><tr><th scope="row">ToBreak</th><td>' + Autolinker.link(String(feature.properties['ToBreak'])) + '</td></tr><tr><th scope="row">Shape_Length</th><td>' + Autolinker.link(String(feature.properties['Shape_Length'])) + '</td></tr><tr><th scope="row">Shape_Area</th><td>' + Autolinker.link(String(feature.properties['Shape_Area'])) + '</td></tr></table>';
//layer.bindPopup(popupContent);
}
var exp_4JSON = new L.geoJson(exp_4,{
onEachFeature: pop_7,
style: function (feature) {
return {color: feature.properties.border_color_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
weight: feature.properties.radius_qgis2leaf,
dashArray: feature.properties.border_style_qgis2leaf,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_fill_qgis2leaf};
}
});
feature_group.addLayer(exp_4JSON);
layerOrder[layerOrder.length] = exp_4JSON;
for (index = 0; index < layerOrder.length; index++) {
feature_group.removeLayer(layerOrder[index]);feature_group.addLayer(layerOrder[index]);
}
//add comment sign to hide this layer on the map in the initial view.
//exp_4JSON.addTo(map);
function pop_AllIncidents2014(feature, layer) {
var popupContent = '<table><tr><th scope="row">DATE</th><td>' + Autolinker.link(String(feature.properties['DATE'])) + '</td></tr><tr><th scope="row">JURS</th><td>' + Autolinker.link(String(feature.properties['JURS'])) + '</td></tr><tr><th scope="row">FACILITY</th><td>' + Autolinker.link(String(feature.properties['FACILITY'])) + '</td></tr><tr><th scope="row">DSP_TIME</th><td>' + Autolinker.link(String(feature.properties['DSP_TIME'])) + '</td></tr><tr><th scope="row">ENR_TIME</th><td>' + Autolinker.link(String(feature.properties['ENR_TIME'])) + '</td></tr><tr><th scope="row">ONS_TIME</th><td>' + Autolinker.link(String(feature.properties['ONS_TIME'])) + '</td></tr><tr><th scope="row">DSP_TO_ONS</th><td>' + Autolinker.link(String(feature.properties['DSP_TO_ONS'])) + '</td></tr><tr><th scope="row">FINTYPEDES</th><td>' + Autolinker.link(String(feature.properties['FINTYPEDES'])) + '</td></tr><tr><th scope="row">UNIT</th><td>' + Autolinker.link(String(feature.properties['UNIT'])) + '</td></tr><tr><th scope="row">XCOORD</th><td>' + Autolinker.link(String(feature.properties['XCOORD'])) + '</td></tr><tr><th scope="row">YCOORD</th><td>' + Autolinker.link(String(feature.properties['YCOORD'])) + '</td></tr><tr><th scope="row">FRPNAME</th><td>' + Autolinker.link(String(feature.properties['FRPNAME'])) + '</td></tr><tr><th scope="row">callCode</th><td>' + Autolinker.link(String(feature.properties['callCode'])) + '</td></tr><tr><th scope="row">incident</th><td>' + Autolinker.link(String(feature.properties['incident'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_AllIncidents2014JSON = new L.geoJson(exp_AllIncidents2014,{
onEachFeature: pop_AllIncidents2014,
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng, {
radius: feature.properties.radius_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
color: feature.properties.borderColor_qgis2leaf,
weight: 1,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_qgis2leaf
})
}
});
var cluster_groupAllIncidents2014JSON= new L.MarkerClusterGroup({showCoverageOnHover: false});
cluster_groupAllIncidents2014JSON.addLayer(exp_AllIncidents2014JSON);
//add comment sign to hide this layer on the map in the initial view.
//cluster_groupAllIncidents2014JSON.addTo(map);
function pop_BalanceofAlarmDeficiencies(feature, layer) {
var popupContent = '<table><tr><th scope="row">DATE</th><td>' + Autolinker.link(String(feature.properties['DATE'])) + '</td></tr><tr><th scope="row">TIME</th><td>' + Autolinker.link(String(feature.properties['TIME'])) + '</td></tr><tr><th scope="row">INCIDENT</th><td>' + Autolinker.link(String(feature.properties['INCIDENT'])) + '</td></tr><tr><th scope="row">TYPE</th><td>' + Autolinker.link(String(feature.properties['TYPE'])) + '</td></tr><tr><th scope="row">DSP_TO_ONS</th><td>' + Autolinker.link(String(feature.properties['DSP_TO_ONS'])) + '</td></tr><tr><th scope="row">UNIT</th><td>' + Autolinker.link(String(feature.properties['UNIT'])) + '</td></tr><tr><th scope="row">REQ_RESP</th><td>' + Autolinker.link(String(feature.properties['REQ_RESP'])) + '</td></tr><tr><th scope="row">ACT_RESP</th><td>' + Autolinker.link(String(feature.properties['ACT_RESP'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_BalanceofAlarmDeficienciesJSON = new L.geoJson(exp_BalanceofAlarmDeficienciesJSON,{
onEachFeature: pop_BalanceofAlarmDeficiencies,
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng, {
radius: feature.properties.radius_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
color: feature.properties.borderColor_qgis2leaf,
weight: 1,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_qgis2leaf
})
}
});
feature_group.addLayer(exp_BalanceofAlarmDeficienciesJSON);
var cluster_groupBalanceofAlarmDeficienciesJSON= new L.MarkerClusterGroup({showCoverageOnHover: false});
cluster_groupBalanceofAlarmDeficienciesJSON.addLayer(exp_BalanceofAlarmDeficienciesJSON);
//add comment sign to hide this layer on the map in the initial view.
cluster_groupBalanceofAlarmDeficienciesJSON.addTo(map);
function pop_FirstOnSceneFailures(feature, layer) {
var popupContent = '<table><tr><th scope="row">DATE</th><td>' + Autolinker.link(String(feature.properties['DATE'])) + '</td></tr><tr><th scope="row">TIME</th><td>' + Autolinker.link(String(feature.properties['TIME'])) + '</td></tr><tr><th scope="row">INCIDENT</th><td>' + Autolinker.link(String(feature.properties['INCIDENT'])) + '</td></tr><tr><th scope="row">TYPE</th><td>' + Autolinker.link(String(feature.properties['TYPE'])) + '</td></tr><tr><th scope="row">DSP_TO_ONS</th><td>' + Autolinker.link(String(feature.properties['DSP_TO_ONS'])) + '</td></tr><tr><th scope="row">UNIT</th><td>' + Autolinker.link(String(feature.properties['UNIT'])) + '</td></tr><tr><th scope="row">REQ_RESP</th><td>' + Autolinker.link(String(feature.properties['REQ_RESP'])) + '</td></tr><tr><th scope="row">ACT_RESP</th><td>' + Autolinker.link(String(feature.properties['ACT_RESP'])) + '</td></tr></table>';
layer.bindPopup(popupContent);
}
var exp_FirstOnSceneFailuresJSON = new L.geoJson(exp_FirstOnSceneFailures,{
onEachFeature: pop_FirstOnSceneFailures,
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng, {
radius: feature.properties.radius_qgis2leaf,
fillColor: feature.properties.color_qgis2leaf,
color: feature.properties.borderColor_qgis2leaf,
weight: 1,
opacity: feature.properties.transp_qgis2leaf,
fillOpacity: feature.properties.transp_qgis2leaf
})
}
});
feature_group.addLayer(exp_FirstOnSceneFailuresJSON);
var cluster_groupFirstOnSceneFailuresJSON= new L.MarkerClusterGroup({showCoverageOnHover: false});
cluster_groupFirstOnSceneFailuresJSON.addLayer(exp_FirstOnSceneFailuresJSON);
//add comment sign to hide this layer on the map in the initial view.
cluster_groupFirstOnSceneFailuresJSON.addTo(map);
var title = new L.Control();
title.onAdd = function (map) {
this._div = L.DomUtil.create('div', 'info'); // create a div with a class "info"
this.update();
return this._div;
};
title.update = function () {
this._div.innerHTML = '<h2>2014 Performance Measures</h2><a href="http://www.calfireslo.org/Documents/Plans/FINALstratPlan%28reduced%29.pdf" target="_blank">Consolidated Fire Protection Strategic Plan</a ><br><a href="http://www.calfireslo.org/Documents/Plans/FINALstratPlan%28reduced%29.pdf#page=165" target="_blank">Service Level Decision Model Rating Sheet</a >'
};
title.addTo(map);
var osmGeocoder = new L.Control.OSMGeocoder({
collapsed: false,
position: 'topright',
text: 'Find!',
});
osmGeocoder.addTo(map);
var disclaimer = L.control({position: 'bottomright'});
function showDisclaimer() {
var div = document.getElementById("info disclaimer")
div.innerHTML = "<h6>DISCLAIMER:<br>CAL FIRE/SLU make no representations or warranties regarding<br> the accuracy of data or maps. The user will not seek to hold CAL FIRE/SLU liable<br> under any circumstances for any damages with respect to any claim<br> by the user or any third party on account of or arising from the use of data or maps.<br>Incident data includes only code 3 calls for medical and fire emergencies<br>in the County Service Areas and county contracts of Los Osos and Avila Beach.</h6><table></table>";
}
function hideDisclaimer() {
var div = document.getElementById("info disclaimer")
div.innerHTML = "<h2>DISCLAIMER</h2>";
}
disclaimer.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info disclaimer');
div.innerHTML = "<h2>DISCLAIMER</h2>";
div.setAttribute("onmouseenter", "showDisclaimer()");
div.setAttribute("onmouseleave", "hideDisclaimer()");
div.id = "info disclaimer"
return div;
};
disclaimer.addTo(map);
var logo = L.control({position: 'bottomleft'});
logo.onAdd = function (map) {
var div = L.DomUtil.create();
div.innerHTML = '<img src="https://dl.dropboxusercontent.com/u/151188090/logos/CalFire.SLOcountyLOGO_small.png">';
return div;
};
logo.addTo(map);
var graph = L.control({position: 'topleft'});
function showGraph() {
var div = document.getElementById("info graph")
div.innerHTML = "<a href=\"https://plot.ly/~slugis/44\" target=\"_blank\"><img src=\"https://plot.ly/~slugis/44.png\" alt=\"Performance Measures\"></a>";
}
function hideGraph() {
var div = document.getElementById("info graph")
div.innerHTML = "<h2>2014 STATS</h2>";
}
graph.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info graph');
div.innerHTML = "<h2>2014 STATS</h2>";
div.setAttribute("onmouseenter", "showGraph()");
div.setAttribute("onmouseleave", "hideGraph()");
div.id = "info graph"
return div;
};
graph.addTo(map);
var baseMaps = {
'OSM Standard': basemap_0,
'OSM Humanitarian': basemap_1,
'Thunderforest Landscape': basemap_2};
L.control.layers(baseMaps,{"First On Scene Deficiencies": cluster_groupFirstOnSceneFailuresJSON,"Balance of Alarm Deficiencies": cluster_groupBalanceofAlarmDeficienciesJSON,"All Incidents 2014": cluster_groupAllIncidents2014JSON,"4 Minutes": exp_4JSON,"5 Minutes": exp_5JSON,"12 Minutes": exp_12JSON,"City Boundary": exp_CityJSON,"CSD Boundary": exp_CSDJSON,"URL": exp_URLJSON,"VRL": exp_VRLJSON,"Battalions": exp_BattalionsJSON,"Stations": exp_StationsJSON,"Undeveloped": exp_UndevelopedJSON,"Remote": exp_RemoteJSON,"Rural": exp_RuralJSON,"Suburban": exp_SuburbanJSON,"Urban": exp_UrbanJSON},{collapsed:false}).addTo(map);
//L.control.scale({options: {position: 'bottomleft',maxWidth: 100,metric: true,imperial: false,updateWhenIdle: false}}).addTo(map);
</script>
</body>
</html>