diff --git a/src/Map/MapComponent.jsx b/src/Map/MapComponent.jsx
index 1426a2f..7c6a106 100644
--- a/src/Map/MapComponent.jsx
+++ b/src/Map/MapComponent.jsx
@@ -6,6 +6,7 @@ import { Layers } from "./Layers";
import { MapPopup } from "./Popup";
import { MaplibreExportControl } from "@watergis/maplibre-gl-export";
import { Basemap } from "./Basemap";
+import { Legend } from "../modules/Sidebar/Legend";
const ruTranslation = {
PageSize: "Размер",
@@ -150,6 +151,8 @@ export const MapComponent = () => {
+
+
);
};
diff --git a/src/Map/layers-config.js b/src/Map/layers-config.js
index eb20df8..44a7b47 100644
--- a/src/Map/layers-config.js
+++ b/src/Map/layers-config.js
@@ -4,7 +4,7 @@
// dk - дома культуры и клубы
// sport - спортивные объекты
-const pointColors = {
+export const pointColors = {
kiosk: "#112cda",
mfc: "#932301",
library: "#a51eda",
diff --git a/src/modules/Sidebar/Legend.jsx b/src/modules/Sidebar/Legend.jsx
new file mode 100644
index 0000000..2539215
--- /dev/null
+++ b/src/modules/Sidebar/Legend.jsx
@@ -0,0 +1,59 @@
+import { Title } from "../../components/Title";
+import { pointColors } from "../../Map/layers-config";
+
+const types = [
+ { color: pointColors.kiosk, id: "kiosk", name: "Городские киоски" },
+ { color: pointColors.mfc, id: "mfc", name: "МФЦ" },
+ { color: pointColors.library, id: "library", name: "Библиотеки" },
+ { color: pointColors.dk, id: "dk", name: "Дома культуры и клубы" },
+ { color: pointColors.sport, id: "sport", name: "Спортивные объекты" },
+];
+
+export function Legend() {
+ return (
+
+
+
+
+
+
Тепловая карта
+
+
+
+ 0
+
+
+ 25
+
+
+ 40
+
+
+
+
+ {types.map((type) => (
+
+ {type.name}
+
+
+
+ ))}
+
+
+ );
+}