From 0409a547fca3e3e8feb1d3c361691610c8b78a44 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: Thu, 24 Sep 2026 08:37:12 +0300 Subject: [PATCH] =?UTF-8?q?diag(gps):=20=D1=82=D0=B5=D1=81=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D1=8B=D0=B9=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=20?= =?UTF-8?q?=D1=81=D0=BE=20=D1=81=D1=82=D0=B0=D0=BD=D0=B4=D0=B0=D1=80=D1=82?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=B2=20ObjectManager=20=E2=80=94=20=D1=80=D0=B0=D0=B7?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=20vs=20layout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/gps/Yandex21Map.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/client/src/components/gps/Yandex21Map.tsx b/client/src/components/gps/Yandex21Map.tsx index 50d1368..6a47b04 100644 --- a/client/src/components/gps/Yandex21Map.tsx +++ b/client/src/components/gps/Yandex21Map.tsx @@ -331,10 +331,20 @@ export function Yandex21Map({ collection.add(placemark); } } - // ДИАГНОСТИКА: убрать после починки + // ДИАГНОСТИКА: убрать после починки — тестовый объект со СТАНДАРТНОЙ + // иконкой в центре карты: если он виден, ObjectManager работает, а ломает + // рендер наш кастомный iconLayout + omObjects.push({ + id: '__diag_test__', + type: 'Feature', + geometry: { type: 'Point', coordinates: [mapRef.current ? mapRef.current.getCenter()[1] : 37.6, mapRef.current ? mapRef.current.getCenter()[0] : 55.7] }, + options: { preset: 'islands#redDotIcon' }, + properties: {}, + }); try { if (omObjects.length > 0) objectManager.add(omObjects); - console.log('[GPS-DIAG] OM added', omObjects.length, 'objects'); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + console.log('[GPS-DIAG] OM added', omObjects.length, 'objects; getLength=', (objectManager.objects as any).getLength?.()); } catch (err) { console.error('[GPS-DIAG] OM add FAILED', err); }