diag(gps): перехват ошибки загрузки маркеров в ObjectManager
This commit is contained in:
@@ -331,7 +331,13 @@ export function Yandex21Map({
|
||||
collection.add(placemark);
|
||||
}
|
||||
}
|
||||
// ДИАГНОСТИКА: убрать после починки
|
||||
try {
|
||||
if (omObjects.length > 0) objectManager.add(omObjects);
|
||||
console.log('[GPS-DIAG] OM added', omObjects.length, 'objects');
|
||||
} catch (err) {
|
||||
console.error('[GPS-DIAG] OM add FAILED', err);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [dataKey, mapReady]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user