Добавление пар lat,lon к карте openlayers в Django
У меня есть платформа django, которую я создал следующим образом:
- Upload/ handle an upload of a CSV file
- List of items that can be checked/ unchecked
- Handle an OpenLayers map
- A section to view a chart using Highcharts
Мой вопрос заключается в том, как мне:
- Handle an uploaded CSV file with lat,lon, id so that once it is uploaded, the lat,lon points are automatically loaded on the openlayers map
- To view a timeseries chart based on the data queried from some database for each of the lat,lon points that is clicked by the user.
Вот пример набора данных из файла csv:
[lat,lon,ids]
[0,30,1],
[-1,31,2],
[-3,32.3,3]}
пункты, которые можно отметить или снять для просмотра
<button>food price</button>
<button>kilograms</button>
данные временных рядов
point 1
food price - [12, 15,18]
kilograms - [30,41,45]
point 2
food price - [10, 11,19]
kilograms - [13,14,24]
point 3
food price - [24, 65,88]
kilograms - [31,41,45]
Ваша помощь будет высоко оценена