mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-17 16:42:28 +00:00
waypoint sym icons, and change layer color design
This commit is contained in:
1 parent
f10b18afe2
commit
00d6c9b45d
5 files changed
+72
-47
No files matched your search
@@ -21,7 +21,7 @@
|
||||
import { map } from '$lib/stores';
|
||||
import { resetCursor, setCrosshairCursor } from '$lib/utils';
|
||||
import { CirclePlus, CircleX, Save } from 'lucide-svelte';
|
||||
import { symbols } from '$lib/assets/symbols';
|
||||
import { getSymbolKey, symbols } from '$lib/assets/symbols';
|
||||
|
||||
let name: string;
|
||||
let description: string;
|
||||
@@ -68,7 +68,7 @@
|
||||
description += '\n\n' + $selectedWaypoint[0].cmt;
|
||||
}
|
||||
let symbol = $selectedWaypoint[0].sym ?? '';
|
||||
let symbolKey = Object.keys(symbols).find((key) => symbols[key].value === symbol);
|
||||
let symbolKey = getSymbolKey(symbol);
|
||||
if (symbolKey) {
|
||||
selectedSymbol = {
|
||||
value: symbol,
|
||||
|
||||
Reference in new issue
Block a user