From e79e5f5db3ea520c267f0dbedd4923026da4b649 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Thu, 20 Feb 2025 16:04:32 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D0=B5=D1=80=D0=B5=D1=82=D0=B0=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/main/templates/create_layer.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/main/templates/create_layer.html b/apps/main/templates/create_layer.html index a9f9e29..cabdd15 100644 --- a/apps/main/templates/create_layer.html +++ b/apps/main/templates/create_layer.html @@ -186,12 +186,13 @@ zoom: 12, }) }); - translateInteraction = new ol.interaction.Translate({}); - map.addInteraction(translateInteraction); + {#translateInteraction = new ol.interaction.Translate({});#} + {#map.addInteraction(translateInteraction);#} // Добавляем возможность масштабирования и перемещения с помощью маркеров transformInteraction = new ol.interaction.Transform({ addCondition: ol.events.condition.shiftKeyOnly, + translateFeature: false }); map.addInteraction(transformInteraction); let vectorLayer;