Код: Выделить всё
heatPoints = AppData.map(function (point) {
return [point.Latitude, point.Longitude];
});
Код: Выделить всё
console.log(JSON.stringify(heatPoints));
но мне нужно загрузить их в точки JSON как массив строк JSON, например:
Код: Выделить всё
var schoolPoints = {
"Points": [
{"latitude":49.2898,"longitude":-123.1364},
{"latitude":49.2752,"longitude":-123.0719},
{"latitude":49.2286,"longitude":-123.1515}
]
};
Подробнее здесь: https://stackoverflow.com/questions/411 ... of-strings
Мобильная версия