[
[
[0,0],[0,1]
],
]
[
[
[0,0],[0,1]
],
[
[0,1],[0,2]
],
]
function addLongitude (latlngss) {
let result = [...latlngss];
let currentIndex = 0;
let latlngssIndex = latlngss.length;
let currentValue = [];
latlngss.map((e, index) => {
if (index == latlngssIndex - 1) {
currentValue = e;
return currentValue;
} else {
}
});
let items = [];
let arr = [];
currentValue.map((item) => {
items[0] = item[0];
items[1] = item[1] + 0.00168;
arr.push(items);
items = [];
});
result.push(arr);
arr = [];
currentIndex++;
return result;
};
let longitude = [
[
[29.52774, 113.36195],
[29.55154, 113.36195],
],
];
for (let i = 0; i < 14; i++) {
const newLatlngss = addLongitude(longitude);
longitude = newLatlngss;
}