diff --git a/src/pages/Arrow.tsx b/src/pages/Arrow.tsx index a377723..7b02766 100644 --- a/src/pages/Arrow.tsx +++ b/src/pages/Arrow.tsx @@ -1,11 +1,13 @@ import L from "leaflet"; -import { createSignal, For, onMount } from "solid-js"; +import { createEffect, createSignal, onMount } from "solid-js"; let map: L.Map | null = null; export function Arrow() { const container =
; - const [points, setPoints] = createSignal
- Haz click en cualquier parte del mapa para crear una flecha.
+ Ingresá una ruta.
+
+ Haz click en un punto de la ruta (punto inicial)
+
+ Haz click en otro punto de la ruta (punto final)
+
+ Un triangulo se creará en el medio, apuntdando hacia
+ el punto final
{p.lat},{p.lng}
} -