Zoom to entity when opening an issue without a specific location in the entity editor

This commit is contained in:
Quincy Morgan
2019-02-11 11:48:21 -05:00
parent 149e1b3e4d
commit 99e1203d46
+2
View File
@@ -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);