mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 03:41:33 +00:00
Fix zoom on search result clicks (fixes #2023)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user