Fix Interchange export and extract styling
This commit is contained in:
1 parent
7c9e0ba5e1
commit
b079009d74
6 files changed
+237
-19
No files matched your search
+2
-1
@@ -466,6 +466,7 @@ async function main() {
|
||||
const settings = categoryConfig(record.category);
|
||||
const size = safeSize(settings.size);
|
||||
const color = safeColor(settings.color);
|
||||
const textColor = safeColor(settings.textColor || '#f5f7f8');
|
||||
const label = record.label || settings.label || record.category.replaceAll('-', ' ');
|
||||
const text = settings.displayText
|
||||
? `<span class="poi-label">${escapeHTML(label)}</span>` : '';
|
||||
@@ -473,7 +474,7 @@ async function main() {
|
||||
className: `poi-icon marker-${record.category}${extractCategories.has(record.category) ? ' marker-extract' : ''}`,
|
||||
iconSize: [size, size],
|
||||
iconAnchor: [size / 2, size / 2],
|
||||
html: `<span class="poi-content" aria-hidden="true" style="--marker-color:${escapeHTML(color)};--marker-size:${size}px">`
|
||||
html: `<span class="poi-content" aria-hidden="true" style="--marker-color:${escapeHTML(color)};--marker-text-color:${escapeHTML(textColor)};--marker-size:${size}px">`
|
||||
+ `<span class="poi-leader"></span>`
|
||||
+ `<span class="poi-dot">${escapeHTML(settings.symbol ?? '•')}</span>${text}</span>`,
|
||||
});
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
{ "id": "places", "label": "Places" }
|
||||
],
|
||||
"categories": {
|
||||
"extract-pmc": { "group": "extracts", "label": "PMC extracts", "color": "#20a66a", "size": 24, "symbol": "P", "displayText": true },
|
||||
"extract-scav": { "group": "extracts", "label": "Scav extracts", "color": "#e18a20", "size": 24, "symbol": "S", "displayText": true },
|
||||
"extract-neutral": { "group": "extracts", "label": "Shared / co-op extracts", "color": "#21a7b2", "size": 25, "symbol": "🤝", "displayText": true },
|
||||
"extract-pmc": { "group": "extracts", "label": "PMC extracts", "color": "#20a66a", "textColor": "#63e69a", "size": 24, "symbol": "P", "displayText": true },
|
||||
"extract-neutral": { "group": "extracts", "label": "Shared / co-op extracts", "color": "#21a7b2", "textColor": "#ffd85a", "size": 25, "symbol": "🤝", "displayText": true },
|
||||
"extract-scav": { "group": "extracts", "label": "Scav extracts", "color": "#e18a20", "textColor": "#65b7ff", "size": 24, "symbol": "S", "displayText": true },
|
||||
"extract-hidden": { "group": "extracts", "label": "Hidden extracts", "color": "#8257b7", "size": 23, "symbol": "?", "displayText": true },
|
||||
"transit": { "group": "extracts", "label": "Transit", "color": "#3477d4", "size": 23, "symbol": "⇄", "displayText": true },
|
||||
"transit": { "group": "extracts", "label": "Transit", "color": "#3477d4", "textColor": "#c79aff", "size": 23, "symbol": "⇄", "displayText": true },
|
||||
"spawn": { "group": "activity", "label": "PMC spawns", "color": "#4f8ac7", "size": 16, "symbol": "P", "displayText": false, "defaultVisible": false },
|
||||
"scav": { "group": "activity", "label": "Scav areas", "color": "#c28135", "size": 17, "symbol": "S", "displayText": false, "defaultVisible": false },
|
||||
"boss": { "group": "activity", "label": "Boss areas", "color": "#bd3f45", "size": 20, "symbol": "👑", "displayText": true },
|
||||
|
||||
+1
-1
@@ -356,7 +356,7 @@ html, body {
|
||||
padding: 2px 5px;
|
||||
border-radius: 3px;
|
||||
background: #111820d9;
|
||||
color: #f5f7f8;
|
||||
color: var(--marker-text-color, #f5f7f8);
|
||||
font: 600 11px/1.25 system-ui, sans-serif;
|
||||
letter-spacing: .01em;
|
||||
text-shadow: 0 1px 2px #000;
|
||||
|
||||
Reference in new issue
Block a user