diff --git a/src/Map/Popup.jsx b/src/Map/Popup.jsx index 04d4549..6563dff 100644 --- a/src/Map/Popup.jsx +++ b/src/Map/Popup.jsx @@ -37,6 +37,9 @@ const useRateValue = (feature) => { }; const pointConfig = [ + { + field: "name", + }, { field: "category", name: "Тип", @@ -77,12 +80,20 @@ export const MapPopup = ({ feature, lat, lng, onClose }) => { return ( - - {item.name} - - - {item.formatter ? item.formatter(value) : value} - + {item.field === "name" ? ( + + {value} + + ) : ( + <> + + {item.name} + + + {item.formatter ? item.formatter(value) : value} + + + )} ); })}