aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MenuItem.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/MenuItem.mjs')
-rw-r--r--src/MenuItem.mjs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs
index 64e82d1..7b1f41e 100644
--- a/src/MenuItem.mjs
+++ b/src/MenuItem.mjs
@@ -1,5 +1,7 @@
1import { shiftByWindow } from './utils.mjs' 1import { shiftByWindow } from './utils.mjs'
2/* eslint-disable no-unused-vars */
2import { GeoLink, removeLeaderLines } from './Link.mjs' 3import { GeoLink, removeLeaderLines } from './Link.mjs'
4/* eslint-enable */
3import * as markers from './marker.mjs' 5import * as markers from './marker.mjs'
4 6
5/** 7/**
@@ -465,7 +467,7 @@ export const setGeoLinkType = (link) => new Folder({
465 .map(([key, value]) => { 467 .map(([key, value]) => {
466 return setGeoLinkTypeItem({ 468 return setGeoLinkTypeItem({
467 link, 469 link,
468 title: key.at(0).toUpperCase() + key.slice(1), 470 title: value.name ?? key.at(0).toUpperCase() + key.slice(1),
469 innerHTML: value.html, 471 innerHTML: value.html,
470 type: key, 472 type: key,
471 style: 'min-width: unset; width: fit-content; padding: 10px; margin: auto auto;', 473 style: 'min-width: unset; width: fit-content; padding: 10px; margin: auto auto;',