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