Fix zoom on search result clicks (fixes #2023)

This commit is contained in:
John Firebaugh
2013-11-25 17:40:07 -08:00
parent f6acacd4f0
commit bf8801cf16

View File

@@ -185,8 +185,8 @@ iD.ui.FeatureList = function(context) {
}
function click(d) {
d3.event.preventDefault();
if (d.entity) {
context.map().zoomTo(d.entity);
context.enter(iD.modes.Select(context, [d.entity.id]));
} else {
context.loadEntity(d.id);