Добавил анимацию в треку. Добавил 2 локальные js библиотеки

This commit is contained in:
2025-11-26 11:12:14 +03:00
parent 609fd5a1da
commit 27694a3a7d
4 changed files with 841 additions and 12 deletions

View File

@@ -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(