I have an array like this
var latLng=[{
"coordinates":[
[
[0,0],
[0.6,0.6],
[3,3],
[5.5]
]
]
}];
I need to print each set of value. which means,
[0,0]
[0.6,0.6]
[3,3]
[5.5]
Because am gonna use this values as latLng in my map to show an icon.So I tried this.
$.each(latLng,function(index,value){
console.log(value.coordinates)
//L.marker(value.coordinates).addTo(map)
})
Am getting like this
How can I can each set of LatLng separately?