diff --git a/data/presets.yaml b/data/presets.yaml index e82239dc8..c4b14add5 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -114,6 +114,8 @@ en: label: Backrest barrier: label: Type + bench: + label: Bench bicycle_parking: label: Type boundary: diff --git a/data/presets/fields.json b/data/presets/fields.json index 2d6ddcd0f..d42f0c1b6 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -202,6 +202,11 @@ "type": "typeCombo", "label": "Type" }, + "bench": { + "key": "bench", + "type": "check", + "label": "Bench" + }, "bicycle_parking": { "key": "bicycle_parking", "type": "combo", diff --git a/data/presets/fields/bench.json b/data/presets/fields/bench.json new file mode 100644 index 000000000..34f95c9e2 --- /dev/null +++ b/data/presets/fields/bench.json @@ -0,0 +1,5 @@ +{ + "key": "bench", + "type": "check", + "label": "Bench" +} \ No newline at end of file diff --git a/data/presets/presets.json b/data/presets/presets.json index 49391a134..8a194f323 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -3697,7 +3697,9 @@ "icon": "bus", "fields": [ "operator", - "shelter" + "bench", + "shelter", + "covered" ], "geometry": [ "point", diff --git a/data/presets/presets/highway/bus_stop.json b/data/presets/presets/highway/bus_stop.json index b881460d8..84697d9d4 100644 --- a/data/presets/presets/highway/bus_stop.json +++ b/data/presets/presets/highway/bus_stop.json @@ -2,7 +2,9 @@ "icon": "bus", "fields": [ "operator", - "shelter" + "bench", + "shelter", + "covered" ], "geometry": [ "point", diff --git a/dist/locales/en.json b/dist/locales/en.json index eb741328a..acd84156f 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -664,6 +664,9 @@ "barrier": { "label": "Type" }, + "bench": { + "label": "Bench" + }, "bicycle_parking": { "label": "Type" }, diff --git a/dist/locales/ru.json b/dist/locales/ru.json index 6ae062d18..013e18459 100644 --- a/dist/locales/ru.json +++ b/dist/locales/ru.json @@ -572,6 +572,9 @@ "barrier": { "label": "Тип" }, + "bench": { + "label": "Скамейка" + }, "bicycle_parking": { "label": "Тип" }, diff --git a/js/id/core/history.js b/js/id/core/history.js index 2ca81bc8b..87c9b0075 100644 --- a/js/id/core/history.js +++ b/js/id/core/history.js @@ -234,7 +234,9 @@ iD.History = function(context) { // this merges originals for changed entities into the base of // the stack even if the current stack doesn't have them (for // example when iD has been restarted in a different region) - var baseEntities = h.baseEntities.map(iD.Entity); + var baseEntities = h.baseEntities.map(function(entity) { + return iD.Entity(entity); + }); stack[0].graph.rebase(baseEntities, _.pluck(stack, 'graph')); tree.rebase(baseEntities); } diff --git a/js/id/ui/preset/address.js b/js/id/ui/preset/address.js index cbd42a2f8..16e9b1521 100644 --- a/js/id/ui/preset/address.js +++ b/js/id/ui/preset/address.js @@ -95,6 +95,8 @@ iD.ui.preset.address = function(field, context) { } function address(selection) { + isInitialized = false; + selection.selectAll('.preset-input-wrap') .remove();