mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 06:28:15 +02:00
Allow zoomToEntity to be called w/o Extent
In case user clicks on Entity description - line 102
This commit is contained in:
@@ -218,7 +218,11 @@ iD.ui.Conflicts = function(context) {
|
||||
|
||||
var entity = context.graph().hasEntity(id);
|
||||
if (entity) {
|
||||
context.map().trimmedExtent(extent);
|
||||
if (extent) {
|
||||
context.map().trimmedExtent(extent);
|
||||
} else {
|
||||
context.map().zoomTo(entity);
|
||||
}
|
||||
context.surface().selectAll(
|
||||
iD.util.entityOrMemberSelector([entity.id], context.graph()))
|
||||
.classed('hover', true);
|
||||
|
||||
Reference in New Issue
Block a user