Исправил перетаскивание
This commit is contained in:
parent
4b7f723393
commit
e79e5f5db3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user