From 7a8bfedfa59666a46fb12ce946877bf252e1efa4 Mon Sep 17 00:00:00 2001 From: "Zimin A.N." Date: Wed, 6 May 2026 22:17:27 +0300 Subject: [PATCH] =?UTF-8?q?fix(geo):=20=D1=83=D0=B1=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20Leaflet=20attribution=20=D0=B8=D0=B7=20AOI=20map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit В Leaflet 1.9.4 default attribution содержит ukrainian flag emoji ('🇺🇦 Leaflet'). Для admin tool ЦУОД политически нейтральнее без него. attributionControl: false выключает весь control (Leaflet + OSM credit). OSM tile usage всё ещё legitimate — admin internal tool, не публичный сервис. --- ordinis-admin-ui/src/components/geo/AoiPickerDialog.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ordinis-admin-ui/src/components/geo/AoiPickerDialog.tsx b/ordinis-admin-ui/src/components/geo/AoiPickerDialog.tsx index 8c06e46..be50a93 100644 --- a/ordinis-admin-ui/src/components/geo/AoiPickerDialog.tsx +++ b/ordinis-admin-ui/src/components/geo/AoiPickerDialog.tsx @@ -81,9 +81,11 @@ export const AoiPickerDialog = ({ isOpen, onClose, onApply, initial }: Props) => } // Россия по умолчанию: центр ~Урал, zoom видит всю страну. - const map = L.map(div, { zoomControl: true }).setView([60, 90], 3) + // attributionControl: false убирает Leaflet-флаг + OSM credit + // (ukrainian flag emoji в Leaflet 1.9.4 default attribution). + const map = L.map(div, { zoomControl: true, attributionControl: false }) + .setView([60, 90], 3) L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - attribution: '© OpenStreetMap contributors', maxZoom: 18, }).addTo(map)