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],