From 4b532540bedae4a17641c0ace8d41ac7bda4b2e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=D1=81=20=D0=A1=D1=83=D0=BB=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Wed, 23 Sep 2026 14:49:27 +0300 Subject: [PATCH] =?UTF-8?q?fix(gps):=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D1=82=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=D0=BE=D0=B2=20Obj?= =?UTF-8?q?ectManager=20=E2=80=94=20GeoJSON=20Feature=20=D1=81=20coordinat?= =?UTF-8?q?es=20[lng,lat]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/gps/Yandex21Map.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/gps/Yandex21Map.tsx b/client/src/components/gps/Yandex21Map.tsx index 062ee62..c4510c0 100644 --- a/client/src/components/gps/Yandex21Map.tsx +++ b/client/src/components/gps/Yandex21Map.tsx @@ -304,8 +304,10 @@ export function Yandex21Map({ const l = gpsMarkerLayout(m); omObjects.push({ id: String(m.id), - type: 'Point', - geometry: [m.lat, m.lng], + // ObjectManager принимает GeoJSON-подобный формат: + // type: 'Feature', geometry { type: 'Point', coordinates: [lng, lat] } + type: 'Feature', + geometry: { type: 'Point', coordinates: [m.lng, m.lat] }, options: { iconLayout: ymaps.templateLayoutFactory.createClass(gpsMarkerHtml(m)), iconOffset: [-l.anchorX, -l.anchorY],