[Vuejs]-Receiving a 'coordinates must be an array of two or more positions' error

0👍

if this.locationData is an array then the input does not require extra brackets around it.

   turf.lineString(this.locationData, {name: 'line 1'});

0👍

Correct console data

As you can see, the error is no longer there, but no line is showing up on my map.

Also, as you can see in my IDE, it seems I need at least THAT array in there

With Array

Without array

Leave a comment