-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathstyle.css
More file actions
71 lines (65 loc) · 1.6 KB
/
style.css
File metadata and controls
71 lines (65 loc) · 1.6 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
/*
* @license
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_deckgl_kml_updated] */
/*
* Always set the map height explicitly to define the size of the div element
* that contains the map.
*/
#map {
height: 100%;
flex-grow: 1; /* Make map take up remaining space */
}
/*
* Optional: Makes the sample page fill the window.
*/
html,
body {
height: 100%;
margin: 0;
padding: 0;
display: flex; /* Use flexbox for layout */
flex-direction: column; /* Stack children vertically */
position: relative; /* Set body as positioning context */
font-family: 'Roboto', Arial, sans-serif; /* Set font family */
}
.tooltip {
position: absolute;
z-index: 1001; /* Ensure it's above the map */
padding: 10px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
border-radius: 4px;
pointer-events: none; /* Allows interaction with elements behind the tooltip */
display: none; /* Hidden by default */
font-size: 12px;
}
h1 {
text-align: center;
margin: 10px;
}
.legend {
position: absolute;
top: 140px;
right: 10px;
z-index: 1000; /* Ensure it's above the map but below tooltip */
background-color: white;
padding: 10px;
border: 1px solid #ccc;
font-family: 'Roboto', Arial, sans-serif;
font-size: 14px;
}
.legend-item {
display: flex;
align-items: center;
margin-bottom: 5px;
}
.legend-color {
width: 20px;
height: 20px;
margin-right: 10px;
border: 1px solid #000; /* Border for color swatch */
}
/* [END maps_deckgl_kml_updated] */