diff --git a/src/components/flights/FlightTrackMap.vue b/src/components/flights/FlightTrackMap.vue index 6d29e64..316dfa0 100644 --- a/src/components/flights/FlightTrackMap.vue +++ b/src/components/flights/FlightTrackMap.vue @@ -1,7 +1,7 @@ diff --git a/src/components/map/MapWithMarkers.vue b/src/components/map/MapWithMarkers.vue index da4f72f..c9783ce 100644 --- a/src/components/map/MapWithMarkers.vue +++ b/src/components/map/MapWithMarkers.vue @@ -24,6 +24,8 @@ const props = defineProps({ const track = ref([]); const gpxLoading = ref(!!props.gpxTrackUrl); +const speed = ref([]); +const elevation = ref([]); onMounted(() => { if (!props.gpxTrackUrl) { return; @@ -37,7 +39,12 @@ onMounted(() => { nodes.forEach(node => { const lat = parseFloat(node.getAttribute("lat")); const lng = parseFloat(node.getAttribute("lon")); + + console.log(node.childNodes); + points.push({lat, lng}); + // speed.value.push(node.getElementsByTagName("extensions").getElementsByTagName("speed")); + // elevation.value.push(node.getElementsByTagName("ele").innerText); }) track.value = points; // puvodne se bounds bralo z tohodle @@ -54,7 +61,11 @@ const bounds = computed(() => {