-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathht-map.html
More file actions
4993 lines (4422 loc) · 195 KB
/
ht-map.html
File metadata and controls
4993 lines (4422 loc) · 195 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
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
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CMRPC H+T Map</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script> <!--add packages instead of cdn/api to keep us nimble in case of cloudflare attack!!-->
<!-- Mapbox GL JS -->
<script src="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css" rel="stylesheet" />
<!--Material UI icons-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Roboto font -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
/* Additional styling to match the original SVG appearance */
.material-icons-outlined {
font-size: 1.25rem;
/* Equivalent to h-5 w-5 */
width: 1.25rem;
height: 1.25rem;
}
/* Critical CSS for performance */
html {
scroll-behavior: smooth;
}
body {
font-display: swap;
margin: 0;
}
#map {
width: 100%;
height: 100%;
}
#info-popup { /* added 11/6 -- need to make sure this works!!*/
position: absolute;
background: white;
border: 1px solid #ccc;
border-radius: 0.25rem;
padding: 0.75rem 1rem;
max-width: 240px;
font-family: 'Roboto', sans-serif;
font-size: 0.875rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 100;
transition: opacity 0.2s ease;
}
.hidden {
display: none;
}
.mapboxgl-popup {
max-width: 260px; /*try with wider max width per LLM's instructions, was 150px 2/3/2026 */
font-family: 'Roboto', sans-serif;
font-size: 0.875rem; /* Tailwind's text-sm */
}
.mapboxgl-popup-content {
background: white;
border-radius: 0.3rem; /* rounded-lg */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 1rem;
color: #1f2937; /* text-gray-800 */
}
.mapboxgl-popup-close-button {
font-size: 1.2rem;
top: 0.5rem;
right: 0.5rem;
}
.popup-header {
font-weight: 500; /* font-semibold */
margin-bottom: 0.5rem;
}
.popup-header.section {
font-size: 0.7rem; /* smaller than pop-up header? */
text-transform: uppercase;
letter-spacing: 0.05em;
color: #6b7280; /* text-gray-500 per tailwind css*/
margin-bottom: 0.25rem;
}
.popup-content p {
margin: 0;
line-height: 1.4;
}
.popup-group {
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 0.5px solid #e5e7eb;
}
.mapboxgl-popup-content > .popup-group:last-of-type {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
#layer-select {
white-space: normal;
height: auto;
min-height: 2.25rem;
line-height: 1.4;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
</style>
</head>
<body class="overflow-hidden">
<div class="flex h-screen w-screen">
<!-- Sidebar -->
<div id="sidebar" class="w-80 bg-white border-r border-gray-300 shadow-xl p-4 overflow-y-auto z-10">
<div class="flex flex-col h-full">
<h2 class="text-xl font-semibold mb-5">Central Massachusetts Regional Housing and Transportation Study - DRAFT</h2> <!--set dynamically?-->
<div class="overflow-y-auto flex-grow">
<!-- Layer toggle - add all layers that will be in the dropdown menu -->
<div class="mb-4">
<select id="layer-select" class="w-full border border-gray-300 rounded px-2 py-1">
<option value="" disabled selected>Select layer</option>
<optgroup label="Housing and People">
<option value="ctysds-pctHH">Recent growth (change in households, 2015-2023)</option>
<option value="tracts-medIncome">Median annual household income</option>
<option value="zip-currentZHVI">Typical home price by zip code (2025)</option>
<option value="zip-chZHVI">Change in typical home price by zip code (2020-2025)</option>
<option value="tracts-pctCostBurdenedOwners">Percent of homeowners cost burdened</option>
<option value="tracts-pctCostBurdenedRenters">Percent of renters cost burdened</option>
<option value="tracts-rdAge">Displacement risk of seniors</option>
<option value="tracts-rdRace">Displacement risk of non-white populations</option>
<option value="parcels-landuse">Land use (property class)</option>
<option value="parcels-density">Actual residential density (units per acre)</option>
<option value="tracts-mva">Neighborhood conditions</option>
</optgroup>
<optgroup label="Transportation">
<<<<<<< HEAD
=======
<option value="bg-transport-diversity-layer">Transportation diversity</option>
>>>>>>> e00fd6365de46ccc9d6454c9b35693d2be6484e0
</optgroup>
<optgroup label="Cost Analysis">
<option value="bg-costs-ownership">Monthly ownership costs</option>
<option value="bg-costs-rental">Monthly rental costs</option>
<option value="bg-costs-transport">Average household monthly transportation costs</option>
<option value="bg-costs-HT-owner">Monthly housing + transportation costs (homeowners)</option>
<option value="bg-costs-HT">Monthly housing + transportation costs (renters)</option>
</optgroup>
<optgroup label="Illustrative Personas">
<option value="bg-costs-2veh-owner">Persona: Costs for a family of 3</option>
</optgroup>
<optgroup label="Suitability Analysis">
<option value="buildable-land">Land without environmental constraints</option>
</optgroup>
<optgroup label="Other">
<option value="admin-layer">Massachusetts tracts</option>
</optgroup>
<!-- <option value="parcels-pctLV">Land Value as Percent of Assessed Value</option>
<option value="parcels-value">Parcel Value Per Acre</option>-->
</select>
</div>
<!-- Legend -->
<div id="legend" class="mt-4 pb-4">
<h3 id="legend-title" class="font-medium mb-2"></h3>
<div id="legend-content" class="space-y-1 text-sm text-gray-700 mb-2">
</div>
<button id="layer-info" class="flex items-center text-sm"><span class="material-icons text-base mr-1">info</span>About this layer</button>
<p id="layer-description" class="mt-1 text-xs text-gray-600 hidden"></p>
</div>
</div>
<!-- Collapsible Overlays Section -->
<div id="overlay-wrapper" class="border-t border-gray-300 w-full mt-auto">
<!-- Header -->
<button
id="overlay-toggle"
class="w-full px-2 py-2 flex items-center justify-between hover:bg-gray-50 text-sm font-medium"
>
<span class="flex items-center gap-1">
<span class="material-icons align-text-bottom">layers</span>
Overlays
</span>
<svg id="overlay-arrow" class="w-4 h-4 transition-transform transform" xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
<!-- Hidden content -->
<div id="overlay-content" class="hidden px-2 py-2 space-y-2 bg-white">
<!-- Boundaries Section -->
<div class="text-xs font-semibold text-gray-600 uppercase tracking-wide mt-2 mb-1">Boundaries</div>
<label class="flex items-start text-sm text-gray-700"> <!--for single line overlay labels, please use this label class. Preserves spacing and is slightly different than multi-line labels-->
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="town-layer" checked/>
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">CMRPC community boundaries</span>
</label>
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Subregions</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="subregion-central" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Central subregion</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="subregion-north" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">North subregion</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="subregion-northeast" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Northeast subregion</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="subregion-west" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">West subregion</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="subregion-southwest" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Southwest subregion</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="subregion-southeast" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Southeast subregion</span>
</label>
</div>
</div>
<!-- Transportation Section -->
<div class="text-xs font-semibold text-gray-600 uppercase tracking-wide mt-3 mb-1">Transportation</div>
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Transit services</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="bus-stops-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Bus stops</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="wrta-fixed-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">WRTA fixed transit lines</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="train-stops-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Rail stops</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="via-stops-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Via microtransit stops</span>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="via-service-area-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Via microtransit service areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Via, an WRTA microtransit partnership, operates its rideshare service in the highlighted areas. Via operates between 7am-7pm."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="bike-trails-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Bike or shared use paths</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Path access may increase quality of life and offer an alternative to other modes of transportation. Bike and shared use path usage is, however, primarily recreational."> ⓘ
</button>
</label>
</div>
</div>
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Mobility mode quality</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="fair-ped-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Pedestrian quality: fair</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Pedestrian access and infrastructure in the highlighted area is considered fair relative to the CMRPC region."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="good-ped-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Pedestrian quality: good</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Pedestrian access and infrastructure in the highlighted area is considered good relative to the CMRPC region."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="fair-transit-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Local transit access: fair</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Transportation access in the highlighted area is considered fair relative to the CMRPC region."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="good-transit-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Local transit access: good</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Transportation access in the highlighted area is considered good relative to the CMRPC region."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="transit-diversity-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Transportation diversity</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Areas with stronger transportation diversity, shown here, are areas where some everyday trips don't require a car and can be completed on foot, on a bike, or by using transit."> ⓘ
</button>
</label>
</div>
</div>
<!-- Zoning Section -->
<div class="text-xs font-semibold text-gray-600 uppercase tracking-wide mt-3 mb-1">Zoning</div>
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Multifamily allowed</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="mf-byright-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Multifamily allowed by-right</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Multifamily housing, if pursued in the highlighted area, is permitted by-right under the respective municipality's zoning."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="mf-specialpermit-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Multifamily allowed by special permit/review</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Multifamily housing, if pursued in the highlighted area, requires special permitting and/or review under the respective municipality's zoning."> ⓘ
</button>
</label>
</div>
</div>
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Zoned capacity</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="exceeds-capacity-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Exceeds zoned density</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="This area does not allow multi-family development. Current development patterns, however, exceed a three unit/acre density. It may be worth up-zoning this area should relatively dense development trends continue."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="excess-capacity-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Excess capacity by zoning</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="This area either allows multi-family development by-right or by special permit/special review. Current development does not exceed three units per acre. There may be excess capacity for additional units should there be interest in further development or redevelopment."> ⓘ
</button>
</label>
</div>
</div>
<!--new section start here -- Suitability?? unless we add a separate UI for this part of the tool-->
<div class="text-xs font-semibold text-gray-600 uppercase tracking-wide mt-3 mb-1">Suitability</div>
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Opportunity sites</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="assessor-vacancy-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Vacant parcels</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined vacant for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="soft-site-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Soft sites</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined soft sites for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="hex-highest-prem" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Highest premium for land due to location</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined soft sites for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="hex-some-prem" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Somewhat high premium for land due to location</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined soft sites for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="hex-no-prem"/>
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">No land discount or premium due to location</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined soft sites for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="hex-some-disc"/>
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Somewhat high discount for land due to location</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined soft sites for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="hex-highest-disc"/>
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Highest discount for land due to location</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined soft sites for this layer, etc, etc."> ⓘ
</button>
</label>
</div>
</div>
<div class="accordion-section mt-2">
<button
type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Policy Considerations</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="tracts-strongmkt-overlay" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Strong market areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Language about development policies, etc, that encourage a strong market and the future development of multifamily housing"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="tracts-midmkt-overlay" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Mid market areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Medium market strategies, light methods, etc"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="tracts-weakmkt-overlay" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Weak market areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Language about nuturing policies, etc, and light methods"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative"> <!--dummy layer replace!!-->
<input type="checkbox" class="sr-only overlay-toggle peer" value="gen-rd-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">General displacement risk</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we developed priority areas, etc."> ⓘ
</button>
</label>
<div class="mt-2">
<div class="text-[9px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
Demographics of interest
</div>
</div>
<div class="pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="nonwhite-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2"> Non-white households</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Why this demographic matters in context of displacement - marginalization and historically capital disenfranchisement"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="seniors-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Senior households</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Why this demographic matters in context of displacement - fixed incomes and market shock, downsizing interest, age, etc"> ⓘ
</button>
</label>
</div>
</div>
</div>
<!-- <div class="pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="tracts-strongmkt-overlay" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Strong market areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Language about development policies, etc, that encourage a strong market and the future development of multifamily housing"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="tracts-midmkt-overlay" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Mid market areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Medium market strategies, light methods, etc"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="tracts-weakmkt-overlay" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Weak market areas</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Language about nuturing policies, etc, and light methods"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="gen-rd-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">General displacement risk</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we developed priority areas, etc."> ⓘ
</button>
</label>
<div class="mt-2">
<div class="text-[9px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
Demographics of interest
</div>
</div>
<div class="pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="nonwhite-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2"> Non-white households</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Why this demographic matters in context of displacement - marginalization and historically capital disenfranchisement"> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="seniors-layer" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Senior households</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Why this demographic matters in context of displacement - fixed incomes and market shock, downsizing interest, age, etc"> ⓘ
</button>
</label>
</div>
</div>-->
<div class="accordion-section mt-2">
<button type="button"
class="accordion-toggle w-full flex items-center justify-between
text-[11px] font-semibold text-gray-500 uppercase tracking-wide mb-1">
<span>Potential density</span>
<svg class="accordion-icon w-3 h-3 transition-transform"
xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7" />
</svg>
</button>
<div class="accordion-content hidden pl-3 border-l-2 border-gray-100 space-y-1">
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="suit-a"/>
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Suitability: high</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="How we defined housing readiness for this layer, etc, etc."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="suit-b" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Suitability: somewhat high</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Same language as above."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="suit-c" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Suitability: somewhat limited</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Same language as above."> ⓘ
</button>
</label>
<label class="flex items-start text-sm text-gray-700">
<div class="relative">
<input type="checkbox" class="sr-only overlay-toggle peer" value="suit-d" />
<div class="w-6 h-3.5 bg-gray-300 rounded-full peer-checked:bg-gray-600 transition-colors"></div>
<div class="absolute top-[2px] left-[2px] w-2.5 h-2.5 bg-white border border-gray-400 rounded-full transition-transform peer-checked:translate-x-[10px]"></div>
</div>
<span class="leading-snug ms-2">Suitability: limited</span>
<button class="ml-1 text-gray-500 hover:text-gray-700 info-btn" style="font-size: 10px;"
data-info="Same language as above."> ⓘ
</button>
</label>
</div>
</div>
<!--new section end here-->
</label>
</div>
</div>
<div id="info-popup" class="hidden"></div> <!--for the info button pop-ups!!-->
<!-- Basemap settings toggle - relocate this in the scrollable part (but still have the panel open towards the top)?? -->
<div id="basemap-toggle" class="border-t border-gray-300 pt-2">
<button
class="w-full flex items-center justify-between px-2 py-2 hover:bg-gray-50 text-sm font-medium"
onclick="toggleBasemapSettings()"
>
<span class="flex items-center gap-1">
<span class="material-icons align-text-bottom">settings</span>
Map settings
</span>
<svg id="basemap-arrow" class="w-4 h-4 transform transition-transform" xmlns="http://www.w3.org/2000/svg" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</button>
</div>
<!-- Basemap settings panel -->
<div id="basemap-settings" class="hidden mt-2 space-y-3 text-sm text-gray-700">
<div>
<label for="opacity" class="block text-sm font-medium text-gray-700 mb-1">Data layer opacity</label>
<input
id="opacity"
type="range"
min="0"
max="1"
step="0.33"
value="0.66"
class="w-full"
onchange="setLayerOpacity(this.value)"
/>
</div>
<div>
<div>
<label class="block mb-1 font-medium">Basemap style</label>
<div id="basemap-style-thumbnails" class="flex gap-2">
<button data-style="communityscale/cmgicidwh007k01qdauae93b0" class="px-3 py-1 bg-black text-white text-xs mb-2 rounded hover:bg-gray-800">
Gray
</button>
<!--
<button data-style="communityscale/cmgidsjne002c01qne3nf930s" class="px-3 py-1 bg-black text-white text-xs rounded hover:bg-gray-800">
Satellite
</button>
<button data-style="communityscale/cmgidu19b00n301sb0jcihsuk" class="px-3 py-1 bg-black text-white text-xs rounded hover:bg-gray-800">
Light Satellite
</button>
-->
</div>
</div>
</select>
</div>
</div>
<footer class="border-t border-gray-300 px-4 py-3 text-sm text-gray-700 flex items-center gap-3">
<a href="https://communityscale.io" target="_blank" rel="noopener noreferrer">
<img
src="https://communityscale.io/wp-content/uploads/2024/01/white-on-black-with-edges-150x150.png"
alt="CommunityScale logo"
class="h-10 w-10 object-contain rounded"
/>
</a>
<div>
<p class="font-medium">CommunityScale</p>
<p class="text-xs text-gray-500">Scaling community innovation.</p>
</div>
</footer>
</div>
</div>
<!--zoom controls-->
<div id="zoom-controls" class="absolute top-4 right-4 z-10 flex flex-col bg-white shadow rounded overflow-hidden">
<button id="zoom-in" class="p-2 text-xl hover:bg-gray-100 focus:outline-none">+</button>
<button id="zoom-out" class="p-2 text-xl hover:bg-gray-100 focus:outline-none">−</button>
<div class="border-t border-gray-300"></div>
<button id="zoom-home" class="p-2 hover:bg-gray-100 focus:outline-none" onclick="zoomToFullRegion()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="5" y="7" width="14" height="10" stroke="currentColor" stroke-width="1.5" fill="none"/>
</svg>
</button>
<button id="clear-map" class="p-2 hover:bg-gray-100 focus:outline-none"><span class="material-icons">refresh</span></button>
</div>
<!-- map -->
<div id="map" class="flex-grow"></div>
</div>
<script>
const INITIAL_LOC = [-71.81, 42.21]
const INITIAL_ZOOM = 10 //set initial zoom (zoom levels 9-12 best for cities depending on size)(this is set to 13 to accomodate the tileset that will need to be uploaded via CLI)
const communityScaleGray = "#425A70" //could replace with different accent color, I personally like this branding
//Place specific constants!!
const regionOfInterest = [ //all study area munis/communities
'BARRE',
'BOYLSTON',
'BROOKFIELD',
'BERLIN',
'BLACKSTONE',
'DUDLEY',
'CHARLTON',
'DOUGLAS',
'EAST BROOKFIELD',
'HARDWICK',
'MILLVILLE',
'NORTH BROOKFIELD',
'OXFORD',
'RUTLAND',
'SOUTHBRIDGE',
'SPENCER',
'STURBRIDGE',
'UXBRIDGE',
'WARREN',
'WEBSTER',
'WEST BROOKFIELD',
'AUBURN',
'GRAFTON',
'LEICESTER',
'HOLDEN',
'HOPEDALE',
'MILLBURY',
'MENDON',
'NEW BRAINTREE',
'PRINCETON',
'NORTHBOROUGH',
'NORTHBRIDGE',