From dc98c6fc50790583f7bbc7c1e2cf08bf7e0d4ebd Mon Sep 17 00:00:00 2001 From: Aaron Lidman Date: Mon, 21 Oct 2013 21:31:33 -0400 Subject: [PATCH] Add zoom to warning selection --- js/id/ui/commit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index 0b2c9321a..a9ea7ba0f 100644 --- a/js/id/ui/commit.js +++ b/js/id/ui/commit.js @@ -195,7 +195,10 @@ iD.ui.Commit = function(context) { } function warningClick(d) { - if (d.entity) context.enter(iD.modes.Select(context, [d.entity.id])); + if (d.entity) { + context.map().zoomTo(d.entity); + context.enter(iD.modes.Select(context, [d.entity.id])); + } } }