From 9f381dea12217bb5a7816088000f5f9b476b22c2 Mon Sep 17 00:00:00 2001 From: portree_kid Date: Sun, 24 May 2020 22:50:29 +0200 Subject: [PATCH] Bug in upload --- src/renderer/components/Upload.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/Upload.vue b/src/renderer/components/Upload.vue index a49e1af..cbcac88 100644 --- a/src/renderer/components/Upload.vue +++ b/src/renderer/components/Upload.vue @@ -115,7 +115,7 @@ return { 'index': Number(o['glueindex']), '_leaflet_id': o._leaflet_id, 'type': o.holdPointType }; } else if (o instanceof L.Polyline) { console.log(o) - var latLngs = o.getLatLngs().map(l => ({lat: l.lat, lng: l.lng, index: l.__vertex.glueindex})); + var latLngs = o.getLatLngs().map(l => ({lat: l.lat, lng: l.lng, index: l.attributes.index})); return { 'start': Number(o['begin']), 'end': Number(o['end']), '_leaflet_id': o._leaflet_id, 'type': 'poly', 'isPushBackRoute': o.options.attributes.isPushBackRoute, latLngs: latLngs }; } else { console.log('Unknown Type ')