mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
Zoom to entity when opening an issue without a specific location in the entity editor
This commit is contained in:
@@ -126,6 +126,8 @@ export function uiEntityIssues(context) {
|
||||
var loc = d.loc();
|
||||
if (loc) {
|
||||
context.map().centerZoomEase(loc, Math.max(context.map().zoom(), 18));
|
||||
} else if (d.entities && d.entities.length > 0) {
|
||||
context.map().zoomToEase(d.entities[0]);
|
||||
}
|
||||
} else {
|
||||
issue.classed('fixes-open', false);
|
||||
|
||||
Reference in New Issue
Block a user