@classic-homes/maps-core 0.1.1 → 0.1.3
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/dist/index.cjs +23 -0
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +20 -1
- package/package.json +3 -2
- package/src/styles/marker.css +40 -0
- package/src/styles/popup.css +46 -5
package/dist/index.cjs
CHANGED
|
@@ -3171,13 +3171,35 @@ function serializeFilter(filter) {
|
|
|
3171
3171
|
}
|
|
3172
3172
|
}
|
|
3173
3173
|
|
|
3174
|
+
// src/utils/marker.ts
|
|
3175
|
+
var MARKER_PROTECTION_CLASS = "ct-marker-protected";
|
|
3176
|
+
function applyMarkerProtection(element) {
|
|
3177
|
+
element.classList.add(MARKER_PROTECTION_CLASS);
|
|
3178
|
+
const style = element.style;
|
|
3179
|
+
style.setProperty("transition", "none", "important");
|
|
3180
|
+
style.setProperty("transition-property", "none", "important");
|
|
3181
|
+
style.setProperty("animation", "none", "important");
|
|
3182
|
+
style.setProperty("will-change", "transform", "important");
|
|
3183
|
+
}
|
|
3184
|
+
function removeMarkerProtection(element) {
|
|
3185
|
+
element.classList.remove(MARKER_PROTECTION_CLASS);
|
|
3186
|
+
}
|
|
3187
|
+
function applyMarkerChildProtection(element) {
|
|
3188
|
+
const style = element.style;
|
|
3189
|
+
style.setProperty("transition", "none", "important");
|
|
3190
|
+
style.setProperty("animation", "none", "important");
|
|
3191
|
+
}
|
|
3192
|
+
|
|
3174
3193
|
exports.BASE_OFFSET = BASE_OFFSET;
|
|
3175
3194
|
exports.DEFAULT_SIMPLIFICATION_THRESHOLDS = DEFAULT_SIMPLIFICATION_THRESHOLDS;
|
|
3176
3195
|
exports.KEYBOARD_CONTROLS = KEYBOARD_CONTROLS;
|
|
3196
|
+
exports.MARKER_PROTECTION_CLASS = MARKER_PROTECTION_CLASS;
|
|
3177
3197
|
exports.OFFSET_CLASSES = OFFSET_CLASSES;
|
|
3178
3198
|
exports.POSITION_CLASSES = POSITION_CLASSES;
|
|
3179
3199
|
exports.THEME_DARK = THEME_DARK;
|
|
3180
3200
|
exports.THEME_LIGHT = THEME_LIGHT;
|
|
3201
|
+
exports.applyMarkerChildProtection = applyMarkerChildProtection;
|
|
3202
|
+
exports.applyMarkerProtection = applyMarkerProtection;
|
|
3181
3203
|
exports.boundsToPolygon = boundsToPolygon;
|
|
3182
3204
|
exports.buildRTreeIndex = buildRTreeIndex;
|
|
3183
3205
|
exports.buildSpatialIndex = buildSpatialIndex;
|
|
@@ -3275,6 +3297,7 @@ exports.queryByBounds = queryByBounds;
|
|
|
3275
3297
|
exports.queryByBoundsWithStats = queryByBoundsWithStats;
|
|
3276
3298
|
exports.queryRTreeByBounds = queryRTreeByBounds;
|
|
3277
3299
|
exports.queryRTreeByBoundsWithStats = queryRTreeByBoundsWithStats;
|
|
3300
|
+
exports.removeMarkerProtection = removeMarkerProtection;
|
|
3278
3301
|
exports.serializeFilter = serializeFilter;
|
|
3279
3302
|
exports.simplifyFeature = simplifyFeature;
|
|
3280
3303
|
exports.simplifyFeatureCollection = simplifyFeatureCollection;
|
package/dist/index.d.cts
CHANGED
|
@@ -1244,4 +1244,38 @@ declare function filterEqual(prev: FilterExpression, next: FilterExpression): bo
|
|
|
1244
1244
|
*/
|
|
1245
1245
|
declare function serializeFilter(filter: FilterExpression): string;
|
|
1246
1246
|
|
|
1247
|
-
|
|
1247
|
+
/**
|
|
1248
|
+
* Marker CSS Protection Utilities
|
|
1249
|
+
*
|
|
1250
|
+
* NOTE: DOM-based markers (maplibregl.Marker) are susceptible to CSS framework
|
|
1251
|
+
* interference that can cause visual sliding during map pan/rotate operations.
|
|
1252
|
+
* For production use cases requiring markers, consider using SymbolLayer instead,
|
|
1253
|
+
* which renders on the GPU canvas and is immune to CSS interference.
|
|
1254
|
+
*
|
|
1255
|
+
* This module provides best-effort CSS protection for DOM markers, but it may not
|
|
1256
|
+
* fully prevent sliding in all environments due to CSS specificity and timing issues.
|
|
1257
|
+
*/
|
|
1258
|
+
/**
|
|
1259
|
+
* Marker protection class name - used for CSS targeting
|
|
1260
|
+
*/
|
|
1261
|
+
declare const MARKER_PROTECTION_CLASS = "ct-marker-protected";
|
|
1262
|
+
/**
|
|
1263
|
+
* Apply CSS protection to a marker element.
|
|
1264
|
+
*
|
|
1265
|
+
* This sets inline styles with !important to attempt to block CSS transitions.
|
|
1266
|
+
* Note: This may not work in all environments - use SymbolLayer for guaranteed
|
|
1267
|
+
* immunity from CSS interference.
|
|
1268
|
+
*
|
|
1269
|
+
* @param element - The marker's root HTMLElement (from marker.getElement())
|
|
1270
|
+
*/
|
|
1271
|
+
declare function applyMarkerProtection(element: HTMLElement): void;
|
|
1272
|
+
/**
|
|
1273
|
+
* Remove protection from a marker element (cleanup function).
|
|
1274
|
+
*/
|
|
1275
|
+
declare function removeMarkerProtection(element: HTMLElement): void;
|
|
1276
|
+
/**
|
|
1277
|
+
* Apply CSS protection to custom marker content (children/slots).
|
|
1278
|
+
*/
|
|
1279
|
+
declare function applyMarkerChildProtection(element: HTMLElement): void;
|
|
1280
|
+
|
|
1281
|
+
export { BASE_OFFSET, BoundsArray, type ClusterExpandOptions, type ClusterExpansionResult, type ClusterFeatureProperties, type ColorExpression, ControlPosition, DEFAULT_SIMPLIFICATION_THRESHOLDS, type DynamicLODOptions, type DynamicLODState, type ExtrusionHeightOptions, type FeatureGroup, type FilterExpression, type GenerateLODOptions, GeoJSONFeature, GeoJSONFeatureCollection, type GeoJSONFingerprint, GeoJSONPolygon, type GroupFeaturesOptions, KEYBOARD_CONTROLS, type LODData, type LODDataWithSimplification, LngLat, type LoadGeoJSONOptions, type LoadGeoJSONResult, type LotFillStyleOptions, type LotOutlineStyleOptions, MARKER_PROTECTION_CLASS, MapBounds, MapTheme, MarkerData, type NumberExpression, OFFSET_CLASSES, POSITION_CLASSES, type PaintProps, type PaintPropsDiff, type SimplificationStats, type SimplificationThreshold, type ValidationResult, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, calculateBounds, calculateCentroid, calculateZoomThresholds, combineBounds, computePositionClasses, computeVerticalOffsetStyle, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createSelectionExpression, createStatusColorExpression, createZoomExpression, decimalToDMS, deepEqual, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, loadGeoJSON, paintPropsEqual, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateGeoJSON, zoomToScale };
|
package/dist/index.d.ts
CHANGED
|
@@ -1244,4 +1244,38 @@ declare function filterEqual(prev: FilterExpression, next: FilterExpression): bo
|
|
|
1244
1244
|
*/
|
|
1245
1245
|
declare function serializeFilter(filter: FilterExpression): string;
|
|
1246
1246
|
|
|
1247
|
-
|
|
1247
|
+
/**
|
|
1248
|
+
* Marker CSS Protection Utilities
|
|
1249
|
+
*
|
|
1250
|
+
* NOTE: DOM-based markers (maplibregl.Marker) are susceptible to CSS framework
|
|
1251
|
+
* interference that can cause visual sliding during map pan/rotate operations.
|
|
1252
|
+
* For production use cases requiring markers, consider using SymbolLayer instead,
|
|
1253
|
+
* which renders on the GPU canvas and is immune to CSS interference.
|
|
1254
|
+
*
|
|
1255
|
+
* This module provides best-effort CSS protection for DOM markers, but it may not
|
|
1256
|
+
* fully prevent sliding in all environments due to CSS specificity and timing issues.
|
|
1257
|
+
*/
|
|
1258
|
+
/**
|
|
1259
|
+
* Marker protection class name - used for CSS targeting
|
|
1260
|
+
*/
|
|
1261
|
+
declare const MARKER_PROTECTION_CLASS = "ct-marker-protected";
|
|
1262
|
+
/**
|
|
1263
|
+
* Apply CSS protection to a marker element.
|
|
1264
|
+
*
|
|
1265
|
+
* This sets inline styles with !important to attempt to block CSS transitions.
|
|
1266
|
+
* Note: This may not work in all environments - use SymbolLayer for guaranteed
|
|
1267
|
+
* immunity from CSS interference.
|
|
1268
|
+
*
|
|
1269
|
+
* @param element - The marker's root HTMLElement (from marker.getElement())
|
|
1270
|
+
*/
|
|
1271
|
+
declare function applyMarkerProtection(element: HTMLElement): void;
|
|
1272
|
+
/**
|
|
1273
|
+
* Remove protection from a marker element (cleanup function).
|
|
1274
|
+
*/
|
|
1275
|
+
declare function removeMarkerProtection(element: HTMLElement): void;
|
|
1276
|
+
/**
|
|
1277
|
+
* Apply CSS protection to custom marker content (children/slots).
|
|
1278
|
+
*/
|
|
1279
|
+
declare function applyMarkerChildProtection(element: HTMLElement): void;
|
|
1280
|
+
|
|
1281
|
+
export { BASE_OFFSET, BoundsArray, type ClusterExpandOptions, type ClusterExpansionResult, type ClusterFeatureProperties, type ColorExpression, ControlPosition, DEFAULT_SIMPLIFICATION_THRESHOLDS, type DynamicLODOptions, type DynamicLODState, type ExtrusionHeightOptions, type FeatureGroup, type FilterExpression, type GenerateLODOptions, GeoJSONFeature, GeoJSONFeatureCollection, type GeoJSONFingerprint, GeoJSONPolygon, type GroupFeaturesOptions, KEYBOARD_CONTROLS, type LODData, type LODDataWithSimplification, LngLat, type LoadGeoJSONOptions, type LoadGeoJSONResult, type LotFillStyleOptions, type LotOutlineStyleOptions, MARKER_PROTECTION_CLASS, MapBounds, MapTheme, MarkerData, type NumberExpression, OFFSET_CLASSES, POSITION_CLASSES, type PaintProps, type PaintPropsDiff, type SimplificationStats, type SimplificationThreshold, type ValidationResult, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, calculateBounds, calculateCentroid, calculateZoomThresholds, combineBounds, computePositionClasses, computeVerticalOffsetStyle, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createSelectionExpression, createStatusColorExpression, createZoomExpression, decimalToDMS, deepEqual, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, loadGeoJSON, paintPropsEqual, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateGeoJSON, zoomToScale };
|
package/dist/index.js
CHANGED
|
@@ -2635,4 +2635,23 @@ function serializeFilter(filter) {
|
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
2637
|
|
|
2638
|
-
|
|
2638
|
+
// src/utils/marker.ts
|
|
2639
|
+
var MARKER_PROTECTION_CLASS = "ct-marker-protected";
|
|
2640
|
+
function applyMarkerProtection(element) {
|
|
2641
|
+
element.classList.add(MARKER_PROTECTION_CLASS);
|
|
2642
|
+
const style = element.style;
|
|
2643
|
+
style.setProperty("transition", "none", "important");
|
|
2644
|
+
style.setProperty("transition-property", "none", "important");
|
|
2645
|
+
style.setProperty("animation", "none", "important");
|
|
2646
|
+
style.setProperty("will-change", "transform", "important");
|
|
2647
|
+
}
|
|
2648
|
+
function removeMarkerProtection(element) {
|
|
2649
|
+
element.classList.remove(MARKER_PROTECTION_CLASS);
|
|
2650
|
+
}
|
|
2651
|
+
function applyMarkerChildProtection(element) {
|
|
2652
|
+
const style = element.style;
|
|
2653
|
+
style.setProperty("transition", "none", "important");
|
|
2654
|
+
style.setProperty("animation", "none", "important");
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
export { BASE_OFFSET, DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, OFFSET_CLASSES, POSITION_CLASSES, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, combineBounds, computePositionClasses, computeVerticalOffsetStyle, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, loadGeoJSON, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateGeoJSON, zoomToScale };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classic-homes/maps-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Core utilities and theme for Classic Theme maps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maps",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"import": "./dist/workers/spatial.worker.js"
|
|
44
44
|
},
|
|
45
45
|
"./styles/controls.css": "./src/styles/controls.css",
|
|
46
|
-
"./styles/popup.css": "./src/styles/popup.css"
|
|
46
|
+
"./styles/popup.css": "./src/styles/popup.css",
|
|
47
|
+
"./styles/marker.css": "./src/styles/marker.css"
|
|
47
48
|
},
|
|
48
49
|
"files": [
|
|
49
50
|
"dist",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapLibre GL Marker Styles
|
|
3
|
+
*
|
|
4
|
+
* NOTE: DOM-based markers are susceptible to CSS framework interference that can
|
|
5
|
+
* cause visual sliding during map pan/rotate operations. For production use,
|
|
6
|
+
* consider using SymbolLayer which renders on the GPU canvas.
|
|
7
|
+
*
|
|
8
|
+
* This CSS provides best-effort transition protection for DOM markers.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* Attempt to disable transitions on markers */
|
|
12
|
+
.maplibregl-marker,
|
|
13
|
+
.maplibregl-marker.ct-marker-protected,
|
|
14
|
+
.ct-marker-protected {
|
|
15
|
+
transition: none !important;
|
|
16
|
+
transition-property: none !important;
|
|
17
|
+
animation: none !important;
|
|
18
|
+
will-change: transform !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.maplibregl-marker *,
|
|
22
|
+
.ct-marker-protected * {
|
|
23
|
+
transition: none !important;
|
|
24
|
+
animation: none !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Ensure SVG icons display correctly */
|
|
28
|
+
.maplibregl-marker svg {
|
|
29
|
+
display: block !important;
|
|
30
|
+
overflow: visible !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Draggable cursor states */
|
|
34
|
+
.maplibregl-marker[draggable='true'] {
|
|
35
|
+
cursor: grab;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.maplibregl-marker[draggable='true']:active {
|
|
39
|
+
cursor: grabbing;
|
|
40
|
+
}
|
package/src/styles/popup.css
CHANGED
|
@@ -97,9 +97,10 @@
|
|
|
97
97
|
on the content doesn't affect it.
|
|
98
98
|
========================================================================== */
|
|
99
99
|
|
|
100
|
-
/* Base tip styling */
|
|
100
|
+
/* Base tip styling - position: relative is required for ::after positioning */
|
|
101
101
|
.maplibregl-popup-tip {
|
|
102
102
|
z-index: 1 !important;
|
|
103
|
+
position: relative !important;
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
/* --- Bottom Anchored (popup above point, arrow points down) --- */
|
|
@@ -183,7 +184,7 @@
|
|
|
183
184
|
border-left: 10px solid hsl(var(--popover)) !important;
|
|
184
185
|
}
|
|
185
186
|
|
|
186
|
-
/* --- Top-Left Anchored --- */
|
|
187
|
+
/* --- Top-Left Anchored (popup below-right of point, arrow points up-left) --- */
|
|
187
188
|
|
|
188
189
|
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
|
|
189
190
|
border-bottom-color: black !important;
|
|
@@ -193,7 +194,17 @@
|
|
|
193
194
|
border-bottom-color: rgb(156 163 175) !important;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
|
-
|
|
197
|
+
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip::after {
|
|
198
|
+
content: '' !important;
|
|
199
|
+
position: absolute !important;
|
|
200
|
+
left: -10px !important;
|
|
201
|
+
bottom: -11px !important;
|
|
202
|
+
border-left: 10px solid transparent !important;
|
|
203
|
+
border-right: 10px solid transparent !important;
|
|
204
|
+
border-bottom: 10px solid hsl(var(--popover)) !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* --- Top-Right Anchored (popup below-left of point, arrow points up-right) --- */
|
|
197
208
|
|
|
198
209
|
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
|
|
199
210
|
border-bottom-color: black !important;
|
|
@@ -203,7 +214,17 @@
|
|
|
203
214
|
border-bottom-color: rgb(156 163 175) !important;
|
|
204
215
|
}
|
|
205
216
|
|
|
206
|
-
|
|
217
|
+
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip::after {
|
|
218
|
+
content: '' !important;
|
|
219
|
+
position: absolute !important;
|
|
220
|
+
left: -10px !important;
|
|
221
|
+
bottom: -11px !important;
|
|
222
|
+
border-left: 10px solid transparent !important;
|
|
223
|
+
border-right: 10px solid transparent !important;
|
|
224
|
+
border-bottom: 10px solid hsl(var(--popover)) !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* --- Bottom-Left Anchored (popup above-right of point, arrow points down-left) --- */
|
|
207
228
|
|
|
208
229
|
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
|
|
209
230
|
border-top-color: black !important;
|
|
@@ -213,7 +234,17 @@
|
|
|
213
234
|
border-top-color: rgb(156 163 175) !important;
|
|
214
235
|
}
|
|
215
236
|
|
|
216
|
-
|
|
237
|
+
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip::after {
|
|
238
|
+
content: '' !important;
|
|
239
|
+
position: absolute !important;
|
|
240
|
+
left: -10px !important;
|
|
241
|
+
top: -11px !important;
|
|
242
|
+
border-left: 10px solid transparent !important;
|
|
243
|
+
border-right: 10px solid transparent !important;
|
|
244
|
+
border-top: 10px solid hsl(var(--popover)) !important;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* --- Bottom-Right Anchored (popup above-left of point, arrow points down-right) --- */
|
|
217
248
|
|
|
218
249
|
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
|
|
219
250
|
border-top-color: black !important;
|
|
@@ -222,3 +253,13 @@
|
|
|
222
253
|
.dark .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
|
|
223
254
|
border-top-color: rgb(156 163 175) !important;
|
|
224
255
|
}
|
|
256
|
+
|
|
257
|
+
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip::after {
|
|
258
|
+
content: '' !important;
|
|
259
|
+
position: absolute !important;
|
|
260
|
+
left: -10px !important;
|
|
261
|
+
top: -11px !important;
|
|
262
|
+
border-left: 10px solid transparent !important;
|
|
263
|
+
border-right: 10px solid transparent !important;
|
|
264
|
+
border-top: 10px solid hsl(var(--popover)) !important;
|
|
265
|
+
}
|