Добавил анимацию в треку. Добавил 2 локальные js библиотеки
This commit is contained in:
@@ -232,7 +232,7 @@ class ShowSourceWithPointsMapView(LoginRequiredMixin, View):
|
||||
"parameter_obj", "geo_obj"
|
||||
).all()
|
||||
|
||||
# Собираем все точки ГЛ в одну группу
|
||||
# Собираем все точки ГЛ в одну группу с сортировкой по времени
|
||||
all_gl_points = []
|
||||
for obj in gl_points:
|
||||
if (
|
||||
@@ -250,9 +250,13 @@ class ShowSourceWithPointsMapView(LoginRequiredMixin, View):
|
||||
"point": (obj.geo_obj.coords.x, obj.geo_obj.coords.y),
|
||||
"name": obj.name,
|
||||
"frequency": f"{param.frequency} [{param.freq_range}] МГц",
|
||||
"timestamp": obj.geo_obj.timestamp.isoformat() if obj.geo_obj.timestamp else None,
|
||||
}
|
||||
)
|
||||
|
||||
# Сортируем точки по времени (от старой к новой)
|
||||
all_gl_points.sort(key=lambda x: x["timestamp"] if x["timestamp"] else "")
|
||||
|
||||
# Добавляем все точки ГЛ одним цветом (красный)
|
||||
if all_gl_points:
|
||||
groups.append(
|
||||
|
||||
Reference in New Issue
Block a user