mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
@@ -96,6 +96,10 @@ export function uiMapData(context) {
|
||||
|
||||
|
||||
function setLayer(which, enabled) {
|
||||
// Don't allow layer changes while drawing - #6584
|
||||
var mode = context.mode();
|
||||
if (mode && /^draw/.test(mode.id)) return;
|
||||
|
||||
var layer = layers.layer(which);
|
||||
if (layer) {
|
||||
layer.enabled(enabled);
|
||||
|
||||
Reference in New Issue
Block a user