mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
progress
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
Ungroup,
|
||||
MapPin,
|
||||
Palette,
|
||||
Filter
|
||||
Filter,
|
||||
Scissors
|
||||
} from 'lucide-svelte';
|
||||
|
||||
import { _ } from 'svelte-i18n';
|
||||
@@ -25,6 +26,10 @@
|
||||
<Pencil slot="icon" size="18" />
|
||||
<span slot="tooltip">{$_('toolbar.routing.tooltip')}</span>
|
||||
</ToolbarItem>
|
||||
<ToolbarItem tool={Tool.SCISSORS}>
|
||||
<Scissors slot="icon" size="18" />
|
||||
<span slot="tooltip">{$_('toolbar.scissors.tooltip')}</span>
|
||||
</ToolbarItem>
|
||||
<ToolbarItem tool={Tool.WAYPOINT}>
|
||||
<MapPin slot="icon" size="18" />
|
||||
<span slot="tooltip">{$_('toolbar.waypoint_tooltip')}</span>
|
||||
|
@@ -3,7 +3,8 @@
|
||||
import { flyAndScale } from '$lib/utils';
|
||||
import * as Card from '$lib/components/ui/card';
|
||||
import Routing from '$lib/components/toolbar/tools/routing/Routing.svelte';
|
||||
import Waypoint from '$lib/components/toolbar/tools/waypoint/Waypoint.svelte';
|
||||
import Scissors from '$lib/components/toolbar/tools/Scissors.svelte';
|
||||
import Waypoint from '$lib/components/toolbar/tools/Waypoint.svelte';
|
||||
import RoutingControlPopup from '$lib/components/toolbar/tools/routing/RoutingControlPopup.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import mapboxgl from 'mapbox-gl';
|
||||
@@ -31,6 +32,8 @@
|
||||
<Card.Content class="p-3">
|
||||
{#if $currentTool === Tool.ROUTING}
|
||||
<Routing {popup} {popupElement} />
|
||||
{:else if $currentTool === Tool.SCISSORS}
|
||||
<Scissors />
|
||||
{:else if $currentTool === Tool.WAYPOINT}
|
||||
<Waypoint />
|
||||
{/if}
|
||||
|
1
website/src/lib/components/toolbar/tools/Scissors.svelte
Normal file
1
website/src/lib/components/toolbar/tools/Scissors.svelte
Normal file
@@ -0,0 +1 @@
|
||||
<div>- Start/end sliders - Cut by clicking on a route</div>
|
@@ -118,6 +118,7 @@ export const routingControls: Map<string, RoutingControls> = new Map();
|
||||
export enum Tool {
|
||||
ROUTING,
|
||||
WAYPOINT,
|
||||
SCISSORS,
|
||||
TIME,
|
||||
MERGE,
|
||||
EXTRACT,
|
||||
|
@@ -15,7 +15,7 @@
|
||||
"delete_all": "Delete all",
|
||||
"select_all": "Select all",
|
||||
"view": "View",
|
||||
"vertical_file_view": "Show vertical file list",
|
||||
"vertical_file_view": "Vertical file list",
|
||||
"switch_basemap": "Switch to previous basemap",
|
||||
"toggle_overlays": "Toggle overlays",
|
||||
"toggle_3d": "Toggle 3D",
|
||||
@@ -32,8 +32,8 @@
|
||||
"dark": "Dark",
|
||||
"system": "System",
|
||||
"layers": "Map layers...",
|
||||
"distance_markers": "Show distance markers",
|
||||
"direction_markers": "Show direction markers",
|
||||
"distance_markers": "Distance markers",
|
||||
"direction_markers": "Direction markers",
|
||||
"about": "About",
|
||||
"donate": "Donate",
|
||||
"ctrl": "Ctrl",
|
||||
@@ -100,12 +100,15 @@
|
||||
"timeout": "The routing request took too long, try adding points closer"
|
||||
}
|
||||
},
|
||||
"time_tooltip": "Change the time and speed data",
|
||||
"merge_tooltip": "Merge files together",
|
||||
"scissors": {
|
||||
"tooltip": "Trim or split routes"
|
||||
},
|
||||
"time_tooltip": "Manage time and speed data",
|
||||
"merge_tooltip": "Merge file elements together",
|
||||
"extract_tooltip": "Extract inner tracks or segments",
|
||||
"waypoint_tooltip": "Create a new point of interest",
|
||||
"reduce_tooltip": "Reduce the number of points",
|
||||
"clean_tooltip": "Clean track points and points of interest with a rectangle selection",
|
||||
"waypoint_tooltip": "Create and edit points of interest",
|
||||
"reduce_tooltip": "Reduce the number of GPS points",
|
||||
"clean_tooltip": "Clean GPS points and points of interest with a rectangle selection",
|
||||
"style_tooltip": "Change the style of the route"
|
||||
},
|
||||
"layers": {
|
||||
@@ -165,14 +168,14 @@
|
||||
}
|
||||
},
|
||||
"chart": {
|
||||
"show_slope": "Show slope",
|
||||
"show_surface": "Show surface",
|
||||
"show_speed": "Show speed",
|
||||
"show_pace": "Show pace",
|
||||
"show_heartrate": "Show heart rate",
|
||||
"show_cadence": "Show cadence",
|
||||
"show_temperature": "Show temperature",
|
||||
"show_power": "Show power"
|
||||
"show_slope": "Show slope data",
|
||||
"show_surface": "Show surface data",
|
||||
"show_speed": "Show speed data",
|
||||
"show_pace": "Show pace data",
|
||||
"show_heartrate": "Show heart rate data",
|
||||
"show_cadence": "Show cadence data",
|
||||
"show_temperature": "Show temperature data",
|
||||
"show_power": "Show power data"
|
||||
},
|
||||
"quantities": {
|
||||
"distance": "Distance",
|
||||
|
Reference in New Issue
Block a user