@classic-homes/maps-core 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +281 -0
- package/dist/chunk-2NISJ7WE.js +534 -0
- package/dist/data-DDS6ok7I.d.cts +141 -0
- package/dist/data-DDS6ok7I.d.ts +141 -0
- package/dist/index.cjs +3284 -0
- package/dist/index.d.cts +1247 -0
- package/dist/index.d.ts +1247 -0
- package/dist/index.js +2638 -0
- package/dist/spatial-J48Btm8f.d.cts +435 -0
- package/dist/spatial-VV-zd88V.d.ts +435 -0
- package/dist/theme/index.cjs +552 -0
- package/dist/theme/index.d.cts +188 -0
- package/dist/theme/index.d.ts +188 -0
- package/dist/theme/index.js +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +758 -0
- package/dist/types/index.d.ts +758 -0
- package/dist/types/index.js +1 -0
- package/dist/workers/index.cjs +390 -0
- package/dist/workers/index.d.cts +372 -0
- package/dist/workers/index.d.ts +372 -0
- package/dist/workers/index.js +387 -0
- package/dist/workers/spatial.worker.js +1138 -0
- package/package.json +77 -0
- package/src/styles/controls.css +212 -0
- package/src/styles/popup.css +224 -0
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@classic-homes/maps-core",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Core utilities and theme for Classic Theme maps",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"maps",
|
|
7
|
+
"maplibre",
|
|
8
|
+
"geospatial",
|
|
9
|
+
"design-system"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/Classic-Homes/classic-theme.git",
|
|
15
|
+
"directory": "packages/maps-core"
|
|
16
|
+
},
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "dist/index.cjs",
|
|
19
|
+
"module": "dist/index.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./theme": {
|
|
28
|
+
"types": "./dist/theme/index.d.ts",
|
|
29
|
+
"import": "./dist/theme/index.js",
|
|
30
|
+
"require": "./dist/theme/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./types": {
|
|
33
|
+
"types": "./dist/types/index.d.ts",
|
|
34
|
+
"import": "./dist/types/index.js",
|
|
35
|
+
"require": "./dist/types/index.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./workers": {
|
|
38
|
+
"types": "./dist/workers/index.d.ts",
|
|
39
|
+
"import": "./dist/workers/index.js",
|
|
40
|
+
"require": "./dist/workers/index.cjs"
|
|
41
|
+
},
|
|
42
|
+
"./workers/spatial.worker": {
|
|
43
|
+
"import": "./dist/workers/spatial.worker.js"
|
|
44
|
+
},
|
|
45
|
+
"./styles/controls.css": "./src/styles/controls.css",
|
|
46
|
+
"./styles/popup.css": "./src/styles/popup.css"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"src/styles"
|
|
51
|
+
],
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsup",
|
|
54
|
+
"dev": "tsup --watch",
|
|
55
|
+
"clean": "rm -rf dist",
|
|
56
|
+
"typecheck": "tsc --noEmit",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"test:watch": "vitest",
|
|
59
|
+
"test:coverage": "vitest run --coverage"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"@classic-homes/theme-tokens": "*",
|
|
63
|
+
"rbush": "^4.0.1"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"maplibre-gl": "^4.0.0 || ^5.0.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@types/rbush": "^4.0.0",
|
|
70
|
+
"maplibre-gl": "^5.0.0",
|
|
71
|
+
"tsup": "^8.0.0",
|
|
72
|
+
"typescript": "^5.3.0"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapLibre GL Control Overrides
|
|
3
|
+
*
|
|
4
|
+
* Applies the Classic Theme "CAD/drafter aesthetic" to MapLibre's built-in controls.
|
|
5
|
+
* Uses hard black borders (light mode) or gray-400 borders (dark mode) to match
|
|
6
|
+
* Dialog and DropdownMenu component styling.
|
|
7
|
+
*
|
|
8
|
+
* Note: Uses !important to override Tailwind's high-specificity CSS reset.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* ==========================================================================
|
|
12
|
+
Navigation Control (zoom in/out, compass)
|
|
13
|
+
========================================================================== */
|
|
14
|
+
|
|
15
|
+
.maplibregl-ctrl-group {
|
|
16
|
+
background: hsl(var(--card)) !important;
|
|
17
|
+
border: 1px solid black !important;
|
|
18
|
+
border-radius: 0.375rem !important; /* rounded-md */
|
|
19
|
+
box-shadow:
|
|
20
|
+
0 4px 6px -1px rgb(0 0 0 / 0.1),
|
|
21
|
+
0 2px 4px -2px rgb(0 0 0 / 0.1) !important; /* shadow-md */
|
|
22
|
+
overflow: hidden !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dark .maplibregl-ctrl-group {
|
|
26
|
+
border-color: rgb(156 163 175) !important; /* gray-400 */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.maplibregl-ctrl-group button {
|
|
30
|
+
background-color: hsl(var(--card)) !important;
|
|
31
|
+
color: hsl(var(--card-foreground)) !important;
|
|
32
|
+
width: 29px !important;
|
|
33
|
+
height: 29px !important;
|
|
34
|
+
display: flex !important;
|
|
35
|
+
align-items: center !important;
|
|
36
|
+
justify-content: center !important;
|
|
37
|
+
border: none !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.maplibregl-ctrl-group button:hover {
|
|
41
|
+
background-color: hsl(var(--muted)) !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.maplibregl-ctrl-group button:focus {
|
|
45
|
+
outline: none !important;
|
|
46
|
+
box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.maplibregl-ctrl-group button:focus-visible {
|
|
50
|
+
outline: none !important;
|
|
51
|
+
box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Dividers between buttons */
|
|
55
|
+
.maplibregl-ctrl-group button + button {
|
|
56
|
+
border-top: 1px solid black !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dark .maplibregl-ctrl-group button + button {
|
|
60
|
+
border-top-color: rgb(156 163 175) !important; /* gray-400 */
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Remove default MapLibre hover borders */
|
|
64
|
+
.maplibregl-ctrl-group:not(:empty) {
|
|
65
|
+
box-shadow:
|
|
66
|
+
0 4px 6px -1px rgb(0 0 0 / 0.1),
|
|
67
|
+
0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Icon styling */
|
|
71
|
+
.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
|
|
72
|
+
filter: none !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dark .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
|
|
76
|
+
filter: invert(1) !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Compass icon rotation */
|
|
80
|
+
.maplibregl-ctrl-compass .maplibregl-ctrl-compass-arrow {
|
|
81
|
+
/* Keep default arrow styling */
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ==========================================================================
|
|
85
|
+
Scale Control
|
|
86
|
+
========================================================================== */
|
|
87
|
+
|
|
88
|
+
.maplibregl-ctrl-scale {
|
|
89
|
+
background: hsl(var(--card)) !important;
|
|
90
|
+
border: 1px solid black !important;
|
|
91
|
+
border-radius: 0.25rem !important; /* rounded */
|
|
92
|
+
padding: 0 4px !important;
|
|
93
|
+
font-family:
|
|
94
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
95
|
+
monospace !important;
|
|
96
|
+
font-size: 0.75rem !important; /* text-xs */
|
|
97
|
+
color: hsl(var(--muted-foreground)) !important;
|
|
98
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important; /* shadow-sm */
|
|
99
|
+
min-width: auto !important;
|
|
100
|
+
text-align: center !important;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.dark .maplibregl-ctrl-scale {
|
|
104
|
+
border-color: rgb(156 163 175) !important; /* gray-400 */
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ==========================================================================
|
|
108
|
+
Fullscreen Control
|
|
109
|
+
========================================================================== */
|
|
110
|
+
|
|
111
|
+
.maplibregl-ctrl-fullscreen {
|
|
112
|
+
/* Inherits from .maplibregl-ctrl-group */
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.maplibregl-ctrl-fullscreen button {
|
|
116
|
+
background-color: hsl(var(--card)) !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.maplibregl-ctrl-fullscreen button:hover {
|
|
120
|
+
background-color: hsl(var(--muted)) !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* ==========================================================================
|
|
124
|
+
Geolocate Control
|
|
125
|
+
========================================================================== */
|
|
126
|
+
|
|
127
|
+
.maplibregl-ctrl-geolocate {
|
|
128
|
+
/* Inherits from .maplibregl-ctrl-group */
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.maplibregl-ctrl-geolocate button {
|
|
132
|
+
background-color: hsl(var(--card)) !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.maplibregl-ctrl-geolocate button:hover {
|
|
136
|
+
background-color: hsl(var(--muted)) !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Active/tracking state */
|
|
140
|
+
.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon {
|
|
141
|
+
/* Use theme accent color when active */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* ==========================================================================
|
|
145
|
+
Attribution Control
|
|
146
|
+
========================================================================== */
|
|
147
|
+
|
|
148
|
+
.maplibregl-ctrl-attrib {
|
|
149
|
+
background: hsl(var(--card) / 0.8) !important;
|
|
150
|
+
padding: 2px 5px !important;
|
|
151
|
+
font-size: 0.625rem !important; /* smaller text */
|
|
152
|
+
border-radius: 0.25rem !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.maplibregl-ctrl-attrib a {
|
|
156
|
+
color: hsl(var(--muted-foreground)) !important;
|
|
157
|
+
text-decoration: none !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.maplibregl-ctrl-attrib a:hover {
|
|
161
|
+
color: hsl(var(--foreground)) !important;
|
|
162
|
+
text-decoration: underline !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Compact attribution button */
|
|
166
|
+
.maplibregl-ctrl-attrib-button {
|
|
167
|
+
background-color: hsl(var(--card) / 0.8) !important;
|
|
168
|
+
border: 1px solid black !important;
|
|
169
|
+
border-radius: 0.25rem !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.dark .maplibregl-ctrl-attrib-button {
|
|
173
|
+
border-color: rgb(156 163 175) !important; /* gray-400 */
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.maplibregl-ctrl-attrib-button:focus {
|
|
177
|
+
outline: none !important;
|
|
178
|
+
box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* ==========================================================================
|
|
182
|
+
Logo Control (MapLibre logo)
|
|
183
|
+
========================================================================== */
|
|
184
|
+
|
|
185
|
+
.maplibregl-ctrl-logo {
|
|
186
|
+
/* Keep default positioning, reduce opacity slightly */
|
|
187
|
+
opacity: 0.7 !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.maplibregl-ctrl-logo:hover {
|
|
191
|
+
opacity: 1 !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* ==========================================================================
|
|
195
|
+
Terrain Control (if used)
|
|
196
|
+
========================================================================== */
|
|
197
|
+
|
|
198
|
+
.maplibregl-ctrl-terrain {
|
|
199
|
+
/* Inherits from .maplibregl-ctrl-group */
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* ==========================================================================
|
|
203
|
+
General Control Container Positioning
|
|
204
|
+
========================================================================== */
|
|
205
|
+
|
|
206
|
+
/* Ensure consistent spacing between controls */
|
|
207
|
+
.maplibregl-ctrl-top-left .maplibregl-ctrl,
|
|
208
|
+
.maplibregl-ctrl-top-right .maplibregl-ctrl,
|
|
209
|
+
.maplibregl-ctrl-bottom-left .maplibregl-ctrl,
|
|
210
|
+
.maplibregl-ctrl-bottom-right .maplibregl-ctrl {
|
|
211
|
+
margin: 10px !important;
|
|
212
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapLibre GL Popup Overrides
|
|
3
|
+
*
|
|
4
|
+
* Applies the Classic Theme "CAD/drafter aesthetic" to MapLibre's popup component.
|
|
5
|
+
* Uses hard black borders (light mode) or gray-400 borders (dark mode) to match
|
|
6
|
+
* Dialog and DropdownMenu component styling.
|
|
7
|
+
*
|
|
8
|
+
* Note: Uses !important to override Tailwind's high-specificity CSS reset.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* ==========================================================================
|
|
12
|
+
Popup Content Container
|
|
13
|
+
========================================================================== */
|
|
14
|
+
|
|
15
|
+
.maplibregl-popup-content {
|
|
16
|
+
background: hsl(var(--popover)) !important;
|
|
17
|
+
color: hsl(var(--popover-foreground)) !important;
|
|
18
|
+
border: 1px solid black !important;
|
|
19
|
+
border-radius: 0.5rem !important; /* rounded-lg to match Dialog */
|
|
20
|
+
box-shadow:
|
|
21
|
+
0 10px 15px -3px rgb(0 0 0 / 0.1),
|
|
22
|
+
0 4px 6px -4px rgb(0 0 0 / 0.1) !important; /* shadow-lg */
|
|
23
|
+
padding: 0 !important;
|
|
24
|
+
overflow: hidden !important; /* Clip children to border-radius */
|
|
25
|
+
position: relative !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dark .maplibregl-popup-content {
|
|
29
|
+
border-color: rgb(156 163 175) !important; /* gray-400 */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* The content wrapper that MapLibre creates - must be transparent to show parent's bg */
|
|
33
|
+
.maplibregl-popup-content .maplibregl-popup-content-wrapper {
|
|
34
|
+
background: transparent !important;
|
|
35
|
+
border-radius: inherit !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Ensure the PopupCard gets the background */
|
|
39
|
+
.maplibregl-popup-content .bg-popover {
|
|
40
|
+
background: hsl(var(--popover)) !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* ==========================================================================
|
|
44
|
+
Popup Close Button (positioned in header area)
|
|
45
|
+
========================================================================== */
|
|
46
|
+
|
|
47
|
+
.maplibregl-popup-close-button {
|
|
48
|
+
position: absolute !important;
|
|
49
|
+
z-index: 10 !important;
|
|
50
|
+
color: hsl(var(--muted-foreground)) !important;
|
|
51
|
+
font-size: 1.25rem !important;
|
|
52
|
+
font-weight: 400 !important;
|
|
53
|
+
font-family:
|
|
54
|
+
system-ui,
|
|
55
|
+
-apple-system,
|
|
56
|
+
sans-serif !important;
|
|
57
|
+
line-height: 1.75rem !important; /* Match height for vertical centering */
|
|
58
|
+
text-align: center !important;
|
|
59
|
+
width: 1.75rem !important;
|
|
60
|
+
height: 1.75rem !important;
|
|
61
|
+
padding: 0 !important;
|
|
62
|
+
margin: 0 !important;
|
|
63
|
+
border: none !important;
|
|
64
|
+
border-radius: 0.25rem !important;
|
|
65
|
+
right: 0.5rem !important;
|
|
66
|
+
top: 0.5rem !important;
|
|
67
|
+
background: transparent !important;
|
|
68
|
+
transition:
|
|
69
|
+
background-color 150ms ease,
|
|
70
|
+
color 150ms ease !important;
|
|
71
|
+
cursor: pointer !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.maplibregl-popup-close-button:hover {
|
|
75
|
+
color: hsl(var(--foreground)) !important;
|
|
76
|
+
background-color: hsl(var(--accent)) !important;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.maplibregl-popup-close-button:focus {
|
|
80
|
+
outline: none !important;
|
|
81
|
+
box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.maplibregl-popup-close-button:focus-visible {
|
|
85
|
+
outline: none !important;
|
|
86
|
+
box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ==========================================================================
|
|
90
|
+
Popup Tip/Arrow Styling
|
|
91
|
+
|
|
92
|
+
MapLibre creates a tip element with CSS borders to form a triangle.
|
|
93
|
+
We color the border to match our popup border, then use ::after to
|
|
94
|
+
create an inner triangle that fills with the background color.
|
|
95
|
+
|
|
96
|
+
Note: The tip is outside the content container, so overflow:hidden
|
|
97
|
+
on the content doesn't affect it.
|
|
98
|
+
========================================================================== */
|
|
99
|
+
|
|
100
|
+
/* Base tip styling */
|
|
101
|
+
.maplibregl-popup-tip {
|
|
102
|
+
z-index: 1 !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* --- Bottom Anchored (popup above point, arrow points down) --- */
|
|
106
|
+
|
|
107
|
+
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
|
|
108
|
+
border-top-color: black !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dark .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
|
|
112
|
+
border-top-color: rgb(156 163 175) !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Inner fill triangle */
|
|
116
|
+
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip::after {
|
|
117
|
+
content: '' !important;
|
|
118
|
+
position: absolute !important;
|
|
119
|
+
left: -10px !important;
|
|
120
|
+
top: -11px !important;
|
|
121
|
+
border-left: 10px solid transparent !important;
|
|
122
|
+
border-right: 10px solid transparent !important;
|
|
123
|
+
border-top: 10px solid hsl(var(--popover)) !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* --- Top Anchored (popup below point, arrow points up) --- */
|
|
127
|
+
|
|
128
|
+
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
|
|
129
|
+
border-bottom-color: black !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.dark .maplibregl-popup-anchor-top .maplibregl-popup-tip {
|
|
133
|
+
border-bottom-color: rgb(156 163 175) !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.maplibregl-popup-anchor-top .maplibregl-popup-tip::after {
|
|
137
|
+
content: '' !important;
|
|
138
|
+
position: absolute !important;
|
|
139
|
+
left: -10px !important;
|
|
140
|
+
bottom: -11px !important;
|
|
141
|
+
border-left: 10px solid transparent !important;
|
|
142
|
+
border-right: 10px solid transparent !important;
|
|
143
|
+
border-bottom: 10px solid hsl(var(--popover)) !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* --- Left Anchored (popup to right of point, arrow points left) --- */
|
|
147
|
+
|
|
148
|
+
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
|
|
149
|
+
border-right-color: black !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.dark .maplibregl-popup-anchor-left .maplibregl-popup-tip {
|
|
153
|
+
border-right-color: rgb(156 163 175) !important;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.maplibregl-popup-anchor-left .maplibregl-popup-tip::after {
|
|
157
|
+
content: '' !important;
|
|
158
|
+
position: absolute !important;
|
|
159
|
+
top: -10px !important;
|
|
160
|
+
left: -10px !important;
|
|
161
|
+
border-top: 10px solid transparent !important;
|
|
162
|
+
border-bottom: 10px solid transparent !important;
|
|
163
|
+
border-right: 10px solid hsl(var(--popover)) !important;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* --- Right Anchored (popup to left of point, arrow points right) --- */
|
|
167
|
+
|
|
168
|
+
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
|
|
169
|
+
border-left-color: black !important;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.dark .maplibregl-popup-anchor-right .maplibregl-popup-tip {
|
|
173
|
+
border-left-color: rgb(156 163 175) !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.maplibregl-popup-anchor-right .maplibregl-popup-tip::after {
|
|
177
|
+
content: '' !important;
|
|
178
|
+
position: absolute !important;
|
|
179
|
+
top: -10px !important;
|
|
180
|
+
right: -10px !important;
|
|
181
|
+
border-top: 10px solid transparent !important;
|
|
182
|
+
border-bottom: 10px solid transparent !important;
|
|
183
|
+
border-left: 10px solid hsl(var(--popover)) !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* --- Top-Left Anchored --- */
|
|
187
|
+
|
|
188
|
+
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
|
|
189
|
+
border-bottom-color: black !important;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.dark .maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
|
|
193
|
+
border-bottom-color: rgb(156 163 175) !important;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* --- Top-Right Anchored --- */
|
|
197
|
+
|
|
198
|
+
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
|
|
199
|
+
border-bottom-color: black !important;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.dark .maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
|
|
203
|
+
border-bottom-color: rgb(156 163 175) !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* --- Bottom-Left Anchored --- */
|
|
207
|
+
|
|
208
|
+
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
|
|
209
|
+
border-top-color: black !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.dark .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
|
|
213
|
+
border-top-color: rgb(156 163 175) !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* --- Bottom-Right Anchored --- */
|
|
217
|
+
|
|
218
|
+
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
|
|
219
|
+
border-top-color: black !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.dark .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
|
|
223
|
+
border-top-color: rgb(156 163 175) !important;
|
|
224
|
+
}
|