mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Add zoom to warning selection
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user