-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBetter_Map_Widget-Full.html
More file actions
5106 lines (4678 loc) · 259 KB
/
Better_Map_Widget-Full.html
File metadata and controls
5106 lines (4678 loc) · 259 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
<!--
Better Map Widget
Developed by Kevin Ford
Some of the ideas behind this project:
* Support for thousands pins on the map, though be aware that Google Maps will start to struggle if too many pins.
* Adjacent pins get grouped/clustered together for a cleaner map display.
* Clusters use a donut chart to represent the severities of the grouped markers.
* Easy toggling of weather layers.
* Display more information when clicking a marker.
* Quick & easy filtering of what's displayed on the map.
* Provide a way to plot connections between resources (and eventually groups).
Prerequisites:
* The user needs "View" permissions to the dashboard plus any displayed groups and/or resources.
* Group's or resources with valid addresses set in the usual 'location' property.
TO USE:
1. Create a new Text widget to the dashboard.
2. On the Text widget's edit dialog, click the "Source" button and paste in the contents of this script, then save the widget.
3. At this point the widget should be ready to use. You can customize the defaults for the widget either via dashboard tokens or by changing variables here within the script.
For instance, the script defaults to using "*" for the group filter. You can change the default by setting a "MapGroupPathFilter" dashboard token, or by hard-coding it in the script's "groupPathFilter" variable below.
NOTE: defaults set via dashboard tokens will take precedence over those hard-coded in the script.
OPTIONAL DASHBOARD TOKENS:
* 'MapGroupPathFilter': Allows setting a default group path to start. Default is "*".
* 'MapLocationProperty': The property to use for the location of the items on the map. Default is "location".
* 'MapMarkerStyle': The style of marker to use for the items on the map. Use "pins" (default pin markers) or "circles" (color-coded circles). Legacy values "default", "pin", "dot", "dots", and "circle" are also accepted. Default is "pins".
* 'MapShowWeather': If weather should be shown by default. Options are "global", "nexrad", or "xweather". Default is "global".
* 'MapOverlayOption': Which optional overlay to default to when weather is shown. Options are "wildfires", "us-wildfires", "outages", "us-poweroutages", "us-flooding" or "earthquakes". Default is "earthquakes".
* 'HideMapOptions': If "true" then will hide the options bar by default. Default is "false".
* 'ShowMapSidebar': If "true" then will show the sidebar by default. Default is "false".
* 'MapSourceType': Whether to map "groups", "resources", or "services". Default is "groups".
* 'MapIgnoreCleared': If "true" then will only show items currently alerting (useful for maps with thousands of markers). Default is "false".
* 'MapIgnoreWarnings': If "true" then won't show items in "Warning" status. Default is "false".
* 'MapIgnoreErrors': If "true" then won't show items in "Error" status. Default is "false".
* 'MapIgnoreCriticals': If "true" then won't show items in "Critical" status. Default is "false".
* 'MapIgnoreSDT': If "true" then won't show items in "SDT" status. Default is "false".
* 'AutoResetMapOnRefresh': If "true" then the map will automatically zoom to encompass all items on timed refreshes. Default is "false".
* 'MapShowTiltControls': If "true" then the tilt & rotation controls for the map will be shown. Default is "false".
* 'MapDisableClustering': If "true" then clustering of adjacent markers on the map will be disabled. Might be desirable if showing connections between locations since clustering might hide markers at certain zoom levels. Default is "false".
* 'MapDisplayProperties': An optional comma-delimited list of custom properties to show when viewing a group's/resource's details.
* 'MapStyle': Allows one of the following available map style options: "silver", "standard", "dark", "aubergine", "satellite", or "silverblue". Default is "silverblue".
* 'MapShowRoadLabels': If "true" then road labels will be shown on the map. Default is "false".
* 'apiBearerToken', or 'apiID' + 'apiKey': Optional LogicMonitor API bearer token or API ID & key to use for the widget. If not specified then the widget will use integrated portal authentication.
* 'XweatherAPIID' & 'XweatherAPIKey': Optional Xweather API ID & key to use for weather radar. If not specified then the widget will not show Xweather radar.
LIMITATIONS:
* This widget is currently unable to leverage LogicMonitor's native dashboard filters.
* Being custom-developed, LogicMonitor's support teams will be limited in what they can assist with regarding questions/issues.
-->
<script>
const version = "3.50";
const releaseNotes = `
<h2>Release Notes</h2>
<p>Latest releases can be found at <a href="https://github.com/logicmonitor/custom_widgets" target="_blank">https://github.com/logicmonitor/custom_widgets</a></p>
<h3>Version 3.50</h3>
<ul>
<li>Drop-down menu to select which type of map marker to use (pins or circles).</li>
<li>Renamed the " dot" option to "circles" for consistency. Legacy "default", "pin", "dot", "dots", and "circle" values are still accepted for the "MapMarkerStyle" dashboard token.</li>
<li>When a user changes a toolbar option then the changes are saved to a cookie so that they persist across refreshes. Use the new "Clear cache" button to clear the cookie and reset the map to its default state.</li>
</ul>
<h3>Version 3.49</h3>
<ul>
<li>Added the ability to use dot-style markers instead of the default pin-style markers.</li>
<li>Fixed issue with mouse wheel scrolling not working correctly within the map info popup window.</li>
</ul>
<h3>Version 3.47</h3>
<ul>
<li>Optimizations to weather data refreshing.</li>
<li>Opacity of weather layers is now less jarring during zoom transitions.</li>
<li>Enabled support for OpenWeather Radar (requires free API key available from https://openweathermap.org/api).</li>
<li>Added LRU tile cache to reduce redundant network requests when the user zooms back to a previously-viewed level.</li>
<li>Fixed issue with connecting lines not being clickable to drill down to the instance details.</li>
</ul>
<h3>Version 3.45</h3>
<ul>
<li>Improved refresh speed when there are a large number of items on the map.</li>
</ul>
<h3>Version 3.44</h3>
<ul>
<li>A number of small fixes & improvements.</li>
</ul>
<h3>Version 3.41</h3>
<ul>
<li>Added the ability to show Xweather Global Radar (requires API ID & key available from https://www.xweather.com/weather-api). Xweather is offers a great deal of optional details such as lightning strikes, hail, wind gusts, etc. Many personal weather stations such as Ecowitt provide free Xweather API access if you feed them your weather data.</li>
</ul>
<h3>Version 3.39</h3>
<ul>
<li>Made the width of the map sidebar adjustable via drag handle.</li>
</ul>
<h3>Version 3.38</h3>
<ul>
<li>Added options for sorting items in the map sidebar by severity or by address.</li>
<li>If a value for the 'MapDisplayProperties' dashboard token is set, then those properties will be displayed in the map sidebar.</li>
</ul>
<h3>Version 3.36</h3>
<ul>
<li>Added the ability to show a map sidebar listing the status of all items on the map. It can be shown by default (or not) via a new dashboard token named "ShowMapSidebar".</li>
</ul>
<h3>Version 3.33</h3>
<ul>
<li>Improved the display of wildfire information.</li>
</ul>
<h3>Version 3.30</h3>
<ul>
<li>Added Catchpoint beacon for performance monitoring (no confidential data is collected).</li>
</ul>
<h3>Version 3.29</h3>
<ul>
<li>Fixed an infinite loop that could occur in certain situations.</li>
</ul>
<h3>Version 3.28</h3>
<ul>
<li>Optimized support for system & auto properties for location data.</li>
</ul>
<h3>Version 3.27</h3>
<ul>
<li>Added the ability to select the weather type and additional overlays from dropdowns instead of radio buttons.</li>
<li>Shifted the few static HTML portions to Javascript to make the CDN version easier to update.</li>
<li>Added a release notes button to the widget options.</li>
</ul>
<h3>Version 3.23</h3>
<ul>
<li>Re-added the option to specify credentials (bearer token or ID/key) for the widget's LM API calls. If not specified then integrated portal authentication will be used.</li>
<li>Fix for US wildfire data not plotting correctly.</li>
</ul>
<h3>Version 3.19</h3>
<ul>
<li>Added two new 'MapStyle' options: "satellite" and "satellite-light".</li>
<li>Fix for US power outage data not plotting correctly.</li>
</ul>
<h3>Version 3.16</h3>
<ul>
<li>Added ability to specify a different location property (though use of the default 'location' property is still recommended).</li>
<li>Optimized loading of power outage data.</li>
</ul>
<h3>Version 3.12</h3>
<ul>
<li>Added hyperlink to tsunami details.</li>
<li>Added display of Australia bushfires.</li>
</ul>`;
// Optional: You can specify a LogicMonitor API bearer token or API ID & key to use for the widget...
let apiBearerToken = "";
let lmAPIID = "";
let lmAPIKey = "";
// Whether we're plotting "groups" or "resources" or "services" (strongly recommend staying with groups or services)...
// You can either set it here or in a dashboard token named 'MapSourceType'...
let mapSourceType = "groups";
// The property to use for the location of the items on the map. Default is "location"...
// You can either set it here or in a dashboard token named 'MapLocationProperty'...
let mapLocationProperty = "location";
// Preferred map style. Available options: "silver" (the default), "standard", "dark", "aubergine", "silverblue", "satellite", or "satellite-light"...
let mapStyle = "silverblue";
// Whether to ignore items with no active alerts (useful for maps with thousands of markers)...
// You can either set it here or in a dashboard token named 'MapIgnoreCleared'...
let showCleared = true;
let showWarnings = true;
let showErrors = true;
let showCriticals = true;
let showSDT = true;
// Capture if a group filter...
// You can set it here or in a dashboard token named "MapGroupPathFilter"...
let groupPathFilter = "*";
// Interval for updating group status data (in minutes)...
let statusUpdateIntervalMinutes = 2;
// Flag to disable marker clustering if needed...
let disableClustering = false;
// Marker style. Options: "pins" (pin with icon) or "circles" (color-coded circle)...
let markerStyle = "pins";
// Whether to show weather by default. Options are: "no", "global", "nexrad", "openweather", "xweather"...
// You can set it here or in a dashboard token named "MapShowWeather"...
let showWeatherDefault = "no";
// If weather is shown, whether to show "wildfires" or "us-wildfires" or "outages" or "us-poweroutages" or "us-flooding" or "earthquakes"...
// You can set it here or in a dashboard token named "MapOverlayOption"...
let additionalOverlayOption = "earthquakes";
// Whether to show or hide the map options along the top of the widget by default...
// You can set it here or in a dashboard token named "HideMapOptions"...
let hideMapOptionsByDefault = false;
// Whether to show the sidebar by default...
// You can set it here or in a dashboard token named "ShowMapSidebar"...
let showMapSidebarByDefault = false;
let sidebarDefaultWidth = 300;
const sidebarMinWidth = 220;
const sidebarMaxWidth = 40;
// Whether to automatically center the map to encompass all items during timed refreshes...
// You can set it here or in a dashboard token named "AutoResetMapOnRefresh"...
let autoResetMapOnRefresh = false;
// When true will not refresh the data on a timed interval (useful ONLY during development)...
let developmentFlag = false;
// Since we generally don't need to poll all properties every time, we can just grab them initially then occasionally every x number of polls based on the following variable (set to 0 to perform a full refresh every time)...
const fullRefreshInterval = 0;
// Optional angle & heading for the Google Map...
let showMapTiltControls = false;
let mapTilt = 0;
let mapHeading = 0;
// Whether to include inherited locations in addition to those directly set on resources and/or services (disabling this can greatly increase refresh speed)...
const pollInheritedLocations = true;
// Typically if both a 'latitude' & 'longitude' property are set, then we can assume the address is already geocoded. Set this to "true" to force geocoding the address instead...
const ignoreLatLongProps = false;
// Whether the Google Maps uses the "cooperative" gesture handling, or "greedy" that allows mouse-wheel zooming without having to hold a modifier key (Google's default is "cooperative")...
const mapGestureHandling = "cooperative";
// Whether to show road labels...
let showRoadLabels = "off";
// An optional comma-delimited list of custom properties to show when viewing a group's/resource's details...
// You can set it here or in a dashboard token named "MapDisplayProperties"...
let displayProps = "";
// Property to look for connecting information in...
const connectionInfoProp = "auto.custom_map_connection_data";
// Stroke weight of connecting lines...
const connectingLineWeight = 3;
// Whether to use geodesic lines when connecting two locations (I recommend not so it just plots a straight line vs curve of the Earth)...
const useGeodesicLines = false;
// OpenWeather API key (required for OpenWeather radar)...
// You can set it here or in a dashboard token named "OpenWeatherAPIKey"...
let openWeatherAPIKey = "";
// Xweather API credentials (required for Xweather radar)...
// You can set them here or in dashboard tokens named "XweatherAPIID" and "XweatherAPIKey"...
let xweatherAPIID = "";
let xweatherAPIKey = "";
// Default opacity for weather layers...
let weatherOpacity = 0.35;
const satelliteWeatherOpacity = 0.6;
// Color scheme for the "global" weather option...
// See https://rainviewer.com/api/color-schemes.html for color scheme options (values are 0-8)...
const rvOptionColorScheme = 8;
// Weather refresh interval in minutes...
const weatherRefreshMinutes = 5;
// Whether to display details about a wildfire on "click" or "mouseover"...
const showWildfireInfoEvent = "click";
// Whether the opacity of an earthquake's icon reflects "time" since the event, or "magnitude"...
let quakeMode = "time";
</script>
<!-- We'll use FontAwesome icons to help pretty up things... -->
<!-- <script src="https://use.fontawesome.com/releases/v6.2.0/js/all.js"></script> -->
<!-- Our CSS styles... -->
<style type="text/css">
body {
margin-top: 0;
}
.customMapBody {
display: flex;
flex-direction: column;
}
.customMapBody, #mapContainer {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
.optionsHidden {
max-height: 0 !important;
opacity: 0;
overflow: hidden !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
transition: max-height 0.25s ease-out, opacity 0.25s ease-out, padding 0.25s ease-out;
}
.optionsVisible {
max-height: 100px;
opacity: 1;
transition: max-height 0.25s ease-out, opacity 0.25s ease-out, padding 0.25s ease-out;
}
.optionsVisibleToggle {
rotate: 0;
transition: all 1s ease-out;
}
.optionsHiddenToggle {
rotate: 180deg;
transition: all 1s ease-out;
}
.mapInfoPopupWindow {
color: rgb(20, 29, 48);
padding: 0 12px 12px 12px;
min-width: 300px;
max-height: 400px;
overflow-y: auto;
font-family: system-ui, -apple-system, sans-serif;
}
#optionsBar {
width: 100%;
/* min-height: 25px; */
padding: 3px 0 0 0;
margin: 0;
font-size: small;
color: #777;
order: 1;
display: flex;
flex-wrap: nowrap;
flex: none;
align-items: center;
justify-content: space-between;
}
#versionInfo {
font-size: smaller;
color: gray;
}
#mapContainer {
display: flex;
flex: 1;
min-height: 0;
order: 2;
}
#googleMap {
flex: 1;
min-width: 0;
border: 1px solid #aaa;
border-radius: 7px 0 0 7px;
transition: border-radius 0.25s ease-out;
}
#sidebarArea {
width: 300px;
min-width: 220px;
max-width: 40%;
flex-shrink: 0;
overflow-x: hidden;
overflow-y: auto;
border: 1px solid #aaa;
border-left: none;
border-radius: 0 7px 7px 0;
background: #fff;
font-family: system-ui, -apple-system, sans-serif;
font-size: 13px;
transition: width 0.25s ease-out, border-width 0.25s ease-out, opacity 0.25s ease-out;
}
#sidebarArea .sidebar-header {
position: sticky;
top: 0;
background: #f5f5f5;
padding: 6px 12px;
font-weight: 600;
font-size: 13px;
color: #444;
border-bottom: 1px solid #ddd;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
#sidebarArea .sidebar-sort-buttons {
display: flex;
gap: 3px;
}
#sidebarArea .sidebar-sort-btn {
background: #e0e0e0;
border: none;
border-radius: 3px;
padding: 2px 6px;
font-size: 11px;
cursor: pointer;
color: #555;
line-height: 1.4;
}
#sidebarArea .sidebar-sort-btn:hover {
background: #d0d0d0;
}
#sidebarArea .sidebar-sort-btn.active {
background: #1a73e8;
color: #fff;
}
#sidebarArea .sidebar-item {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 7px 12px;
cursor: pointer;
border-bottom: 1px solid #eee;
transition: background-color 0.15s;
color: #333;
}
#sidebarArea .sidebar-item:hover {
background-color: #e8f0fe;
}
#sidebarArea .sidebar-item.active {
background-color: #d2e3fc;
}
#sidebarArea .sidebar-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
margin-top: 3px;
}
#sidebarArea .sidebar-item-content {
flex: 1;
min-width: 0;
}
#sidebarArea .sidebar-item-name {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#sidebarArea .sidebar-item-props {
margin-top: 2px;
}
#sidebarArea .sidebar-item-prop {
font-size: 11px;
color: #888;
line-height: 1.4;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#sidebarArea .sidebar-item-prop-label {
font-weight: 600;
color: #999;
}
#sidebarArea .sidebar-group-header {
padding: 5px 12px;
font-size: 11px;
font-weight: 600;
color: #888;
background: #f0f0f0;
border-bottom: 1px solid #ddd;
text-transform: uppercase;
letter-spacing: 0.3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#sidebarArea.sidebar-hidden {
width: 0;
min-width: 0;
border-width: 0;
opacity: 0;
overflow: hidden;
}
#sidebarResizeHandle {
width: 5px;
cursor: col-resize;
background: #ddd;
flex-shrink: 0;
transition: background-color 0.15s, width 0.25s ease-out, opacity 0.25s ease-out;
}
#sidebarResizeHandle:hover,
#sidebarResizeHandle.dragging {
background: #aaa;
}
#sidebarResizeHandle.sidebar-hidden {
width: 0;
opacity: 0;
overflow: hidden;
}
#googleMap.sidebar-hidden {
border-radius: 7px;
transition: border-radius 0.25s ease-out;
}
#customMapRefreshButton, #customMapResetZoom {
margin-right: 5px;
}
#optionsBar input[type="radio" i], #optionsBar input[type="checkbox" i] {
vertical-align: -0.09em;
}
#mapOptionsArea {
display: flex;
flex-wrap: wrap;
align-items: center;
}
#optionsToggleArea {
display: none;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
#weatherOptionsArea, #autoZoomOptions {
display: inline-flex;
flex-wrap: nowrap;
align-items: center;
margin: 0 5px;
}
#sevFilterOptions {
display: flex;
border: 1px solid #ddd;
margin: 3px 10px 3px 5px;
padding: 0;
align-content: center;
align-items: center;
height: 30px;
border-radius: 5px;
}
#weatherOptions {
display: inline-flex;
gap: 6px;
margin: 3px 0 3px 5px;
align-items: center;
}
#optionsToggleArea select {
height: 28px;
border: 1px solid #ddd;
border-radius: 5px;
padding: 0 4px;
font-size: 12px;
background-color: #fff;
cursor: pointer;
}
.sevFilterOption {
display: inline-flex;
align-items: center;
padding: 0 3px;
}
#additionalOverlayOptions {
display: inline-flex;
align-items: center;
}
#markerStyleOptions {
display: inline-flex;
align-items: center;
margin: 3px 0;
}
#customGroupFilterOptions {
padding-right: 10px;
font-weight: bold;
}
#customGroupFilterField {
background-color: #eee;
border: 1px solid silver;
font-family: Tahoma, Verdana, Roboto, monospace;
max-width: 150px;
}
#refreshStatusArea {
/* font-weight: bold; */
font-size: medium;
/* font-size: smaller; */
/* color: white; */
color: darkblue;
display: inline-flex;
flex-wrap: nowrap;
align-items: center;
text-wrap: nowrap;
}
:root {
--warning-color: #f5ca1d;
/* --warning-color: #f1c40f; */
--error-color: #ff8c00;
/* --error-color: #f57200; */
--critical-color: #e0351b;
--clear-color: #85c25d;
/* --clear-color: #85c25d; */
--sdt-color: #00a1fe;
}
#optionsBar .svg-inline--fa {
font-size: initial;
}
#gearIcon:hover {
filter: brightness(50%);
}
#releaseNotesButton {
height: 30px;
width: auto;
vertical-align: middle;
background-color: white;
border: 1px solid #ccc;
border-radius: 3px;
cursor: pointer;
margin-right: 4px;
padding: 0 5px;
}
#releaseNotesButton:hover {
background-color: #f0f0f0;
}
#releaseNotesOverlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 10000;
justify-content: center;
align-items: center;
}
#releaseNotesOverlay.visible {
display: flex;
}
#releaseNotesPopup {
background: white;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
padding: 20px 24px;
min-width: 320px;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
position: relative;
font-size: 0.9em;
color: rgb(20, 29, 48);
}
#releaseNotesCloseBtn {
position: absolute;
top: 8px;
right: 12px;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: #888;
line-height: 1;
}
#releaseNotesCloseBtn:hover {
color: #333;
}
#clearCacheButton {
height: 30px;
width: auto;
vertical-align: middle;
background-color: white;
border: 1px solid #ccc;
border-radius: 3px;
cursor: pointer;
}
#clearCacheButton:hover {
background-color: #f0f0f0;
}
#recycleIcon {
fill: gray;
}
.toolbarSevIcon {
display: flex;
max-width: 25px;
}
.disabled {
opacity: 0.5 !important;
cursor: not-allowed;
pointer-events: none;
}
.noResultMessage {
color: red;
font-size: medium;
}
.sdtNote {
font-size: 0.95em;
font-style: italic;
font-weight: 250;
}
.customItemArea {
padding: 3px;
margin-top: 3px;
border-top: 1px solid #ddd;
border-radius: 4px;
}
/* .customItem {
padding-top: 3px;
} */
.customItem .customItemName {
font-weight: bold;
}
.infoDialogIcon {
height: 20px;
}
/*
* group styles in unhighlighted state.
*/
.group {
align-items: center;
background-color: #FFFFFF;
border-radius: 50% 50% 50% 0;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
color: #263238;
display: flex;
font-size: 14px;
gap: 15px;
height: 27px;
width: 27px;
justify-content: center;
padding: 0px;
position: relative;
transform: rotate(-45deg);
transition: all 0.3s ease-out;
}
.group:not(.highlight):hover {
transform: rotate(-45deg) scale(1.15);
cursor: pointer;
}
.group::before {
display: none;
}
.group::after {
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-top: 9px solid #FFFFFF;
content: "";
height: 0;
left: 50%;
position: absolute;
top: 95%;
transform: translate(-50%, 0);
transition: all 0.3s ease-out;
width: 0;
}
.group:not(.highlight):not(.dot-style)::after {
display: none;
}
.group:not(.highlight):not(.dot-style) .icon {
transform: rotate(45deg);
}
.group .icon {
align-items: center;
display: flex;
justify-content: center;
color: #FFFFFF;
}
.group .icon svg {
height: 20px;
width: auto;
}
.group .details {
display: none;
flex-direction: column;
flex: 1;
min-width: 250px;
}
.group .groupName {
font-weight: 600;
margin-bottom: 8px;
font-size: medium;
}
.group .groupName a {
color: #1a73e8;
text-decoration: none;
}
.group .groupName a:hover {
text-decoration: underline;
}
.group .description {
color: #5f6368;
font-size: 12px;
line-height: 1.4;
margin-bottom: 12px;
}
.group .features {
align-items: center;
display: flex;
flex-direction: row;
gap: 8px;
flex-wrap: wrap;
}
.group .features > div {
align-items: center;
background: #f8f9fa;
border-radius: 4px;
border: 1px solid #e8eaed;
display: flex;
font-size: 12px;
gap: 6px;
padding: 4px 8px;
color: #3c4043;
font-size: 13px;
}
.group .features > div.drillDownButton {
background-color: #1a73e8;
border-color: #1a73e8;
cursor: pointer;
}
.group .features > div.drillDownButton a {
color: white;
}
.group .features > div.drillDownButton:hover {
background-color: #1557b0;
}
.group .close-button {
display: none;
position: absolute;
top: 12px;
right: 12px;
background: transparent;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 4px;
color: #666;
transition: all 0.2s ease;
}
.group .close-button:hover {
background: #f1f1f1;
color: #333;
}
.group .close-button svg {
width: 16px;
height: 16px;
}
/*
* group styles in highlighted state.
*/
.group.highlight {
background-color: #FFFFFF;
border-radius: 8px;
box-shadow: none;
height: fit-content;
transform: none;
width: auto;
z-index: 10;
max-width: 400px;
}
.group.highlight::before {
display: none;
}
.group.highlight .details {
display: flex;
z-index: 10;
}
.group.highlight .icon svg {
width: 50px;
height: 50px;
}
.group .link {
color: white;
}
.group .link:hover {
/* color: -webkit-link; */
color: lightcyan;
}
.group.highlight .close-button {
display: block;
}
.indexText {
z-index: 100;
}
/*
* Cleared icon colors.
*/
.group.highlight:has(.clear) .icon {
color: var(--clear-color);
}
.group:not(.highlight):has(.clear) {
background-color: var(--clear-color);
}
.group:not(.highlight):has(.clear)::after {
border-top: 9px solid var(--clear-color);
top: 85%;
}
/*
* Warning icon colors.
*/
.group.highlight:has(.warn) .icon {
color: var(--warning-color);
}
.group:not(.highlight):has(.warn) {
background-color: var(--warning-color);
}
.group:not(.highlight):has(.warn)::after {
border-top: 9px solid var(--warning-color);
top: 85%;
}
/*
* Error icon colors.
*/
.group.highlight:has(.error) .icon {
color: var(--error-color);
}
.group:not(.highlight):has(.error) {
background-color: var(--error-color);
}
.group:not(.highlight):has(.error)::after {
border-top: 9px solid var(--error-color);
top: 85%;
}
/*
* Critical icon colors.
*/
.group.highlight:has(.critical) .icon {
color: var(--critical-color);
}
.group:not(.highlight):has(.critical) {
background-color: var(--critical-color);
}
.group:not(.highlight):has(.critical)::after {
border-top: 9px solid var(--critical-color);
top: 85%;
}
/*
* SDT icon colors.
*/
.group.highlight:has(.sdt) .icon {
color: var(--sdt-color);
}
.group:not(.highlight):has(.sdt) {
background-color: var(--sdt-color);
}
.group:not(.highlight):has(.sdt)::after {
border-top: 9px solid var(--sdt-color);
top: 85%;
}
/*
* Dot-style marker overrides (enabled via markerStyle = "circles").
*/
.group.dot-style {
border-radius: 50%;
height: 22px;
width: 22px;
border: 2px solid rgba(255, 255, 255, 0.9);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
box-sizing: border-box;
transform: translateY(50%);
}
.group.dot-style::before {
display: none;
}
.group.dot-style::after {
border: none;
border-radius: 50%;
height: auto;
width: auto;
left: auto;
top: auto;
transform: none;
inset: -2px;
opacity: 0;
z-index: -1;
}
.group.dot-style:not(.highlight) {
background-image: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
}
.group.dot-style:not(.highlight):hover {
transform: translateY(50%) scale(1.25);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
cursor: pointer;
}
.group.dot-style:not(.highlight) .icon {
display: none;
}
.group.dot-style.highlight {
background-image: none;
border: none;
border-radius: 8px;
box-shadow: none;
height: fit-content;
width: auto;
transform: none;
}
.group.dot-style.highlight::after {
display: none;
}
.group.dot-style:not(.highlight):has(.clear)::after,
.group.dot-style:not(.highlight):has(.warn)::after,
.group.dot-style:not(.highlight):has(.sdt)::after {
border: none;
}
@keyframes pulse-ring {
0% { transform: scale(1); opacity: 0.5; }
100% { transform: scale(2.2); opacity: 0; }
}
.group.dot-style:not(.highlight):has(.error)::after {
background-color: var(--error-color);
border: none;
inset: -2px;
opacity: 1;
animation: pulse-ring 2s ease-out infinite;
}
.group.dot-style:not(.highlight):has(.critical)::after {
background-color: var(--critical-color);
border: none;
inset: -2px;
opacity: 1;
animation: pulse-ring 1.5s ease-out infinite;
}
/* Something about the Froala editor causes the default Gmap buttons to be shifted. This appears to fix that... */
.gm-control-active {
padding: 10px !important;
}
[data-title]:hover:after {
opacity: 1;
transition: all 0.1s ease 0.5s;
visibility: visible;
}
[data-title]:after {
font-weight: normal;