mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Add zoom to search result, closes #2023
This commit is contained in:
@@ -186,6 +186,7 @@ iD.ui.FeatureList = function(context) {
|
||||
|
||||
function click(d) {
|
||||
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