diff --git a/src/routes/ControlPanel.svelte b/src/routes/ControlPanel.svelte index 5288255..3081dda 100644 --- a/src/routes/ControlPanel.svelte +++ b/src/routes/ControlPanel.svelte @@ -20,7 +20,7 @@ let selectedProfile: ProfileName = "Normal"; let startPoint = "Custom"; - let element: HTMLDivElement | null = null; + export let element: HTMLDivElement | null = null; const now = new Date(); let startDate = now.toISOString().split("T")[0]; // YYYY-MM-DD @@ -53,10 +53,6 @@ } }; - export let handleClickSelectOnMap = () => { - console.log("Select on map clicked"); - } - const applyCoordinatesFromInput = () => { const lat = parseFloat(inputLat); const lng = parseFloat(inputLng); @@ -84,8 +80,8 @@ $FlightParametersStore.launch_latitude = lat; $FlightParametersStore.launch_longitude = lng; console.log("Launch position updated:", lat, lng); - inputLat = lat.toFixed(6).toString(); - inputLng = lng.toFixed(6).toString(); + inputLat = lat.toString(); + inputLng = lng.toString(); }; export const getElement = () => { @@ -93,11 +89,7 @@ }; -
+
Указать на карте console.log("Select on map clicked")}>Указать на карте diff --git a/src/routes/Toast.svelte b/src/routes/Toast.svelte deleted file mode 100644 index add2620..0000000 --- a/src/routes/Toast.svelte +++ /dev/null @@ -1,97 +0,0 @@ - - - - - -
- {#each $toasts as toast (toast.id)} - removeToast(toast.id)} - > - removeToast(toast.id)}> - {toast.header} - - - {toast.body} - - - {/each} -
- - \ No newline at end of file diff --git a/src/routes/map.svelte b/src/routes/map.svelte index fc0c0d1..88fec6d 100644 --- a/src/routes/map.svelte +++ b/src/routes/map.svelte @@ -7,6 +7,8 @@ import { distHaversine } from "../lib/mathutil.ts"; import type { PredictionData, TelemetryData } from "../lib/types.ts"; + + /** * @type {'prediction' | 'telemetry'} */ @@ -143,7 +145,9 @@ {mouseLng.toFixed(6)}

- +
+ +
{#if map && windData} {/if} diff --git a/src/routes/predict/+page.svelte b/src/routes/predict/+page.svelte index 54e13d0..7a1f701 100644 --- a/src/routes/predict/+page.svelte +++ b/src/routes/predict/+page.svelte @@ -1,17 +1,15 @@
- - - + + -
+ \ No newline at end of file diff --git a/static/css/custom.css b/static/css/custom.css index b9ce25f..13a0399 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -78,6 +78,6 @@ .panel-container { position: absolute; bottom: 20px; - left: 20px; + right: 20px; z-index: 1000; } \ No newline at end of file