From 9a5b3ffd6bdb432d4291c48e5e75bc279c2dd094 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Wed, 22 Jul 2020 11:44:42 -0400 Subject: [PATCH] Update to iD v2.18.3 --- vendor/assets/iD/iD.js | 31 +++++++++++++++-------- vendor/assets/iD/iD/data/imagery.min.json | 2 +- vendor/assets/iD/iD/locales/de.json | 2 +- vendor/assets/iD/iD/locales/eo.json | 2 +- vendor/assets/iD/iD/locales/es.json | 2 +- vendor/assets/iD/iD/locales/no.json | 2 +- vendor/assets/iD/iD/locales/pt-BR.json | 2 +- vendor/assets/iD/iD/locales/pt.json | 2 +- vendor/assets/iD/iD/locales/ru.json | 2 +- vendor/assets/iD/iD/locales/sk.json | 2 +- vendor/assets/iD/iD/locales/sl.json | 2 +- 11 files changed, 30 insertions(+), 21 deletions(-) diff --git a/vendor/assets/iD/iD.js b/vendor/assets/iD/iD.js index 9e36a035e..6cc200808 100644 --- a/vendor/assets/iD/iD.js +++ b/vendor/assets/iD/iD.js @@ -54819,6 +54819,8 @@ var loc = extent.center(); context.map().centerEase(loc); + // we could enter the mode multiple times, so reset follow for next time + _follow = false; } @@ -89867,7 +89869,7 @@ _base = context.graph(); _coalesceChanges = false; - loadActivePresets(); + loadActivePresets(true); return entityEditor .modified(false); @@ -89881,7 +89883,7 @@ }; - function loadActivePresets() { + function loadActivePresets(isForNewSelection) { var graph = context.graph(); @@ -89903,11 +89905,14 @@ return _mainPresetIndex.item(pID); }); - // A "weak" preset doesn't set any tags. (e.g. "Address") - var weakPreset = _activePresets.length === 1 && - Object.keys(_activePresets[0].addTags || {}).length === 0; - // Don't replace a weak preset with a fallback preset (e.g. "Point") - if (weakPreset && matches.length === 1 && matches[0].isFallback()) { return; } + if (!isForNewSelection) { + // A "weak" preset doesn't set any tags. (e.g. "Address") + var weakPreset = _activePresets.length === 1 && + !_activePresets[0].isFallback() && + Object.keys(_activePresets[0].addTags || {}).length === 0; + // Don't replace a weak preset with a fallback preset (e.g. "Point") + if (weakPreset && matches.length === 1 && matches[0].isFallback()) { return; } + } entityEditor.presets(matches); } @@ -117386,10 +117391,14 @@ // some targets have default click events we don't want to override var isOkayTarget = event.composedPath().some(function(node) { - // clicking