zoomTo(sel);
}
public static void zoomTo(Collection<OsmPrimitive> sel) {
BoundingXYVisitor bboxCalculator = new BoundingXYVisitor();
bboxCalculator.computeBoundingBox(sel);
// increase bbox by 0.001 degrees on each side. this is required
// especially if the bbox contains one single node, but helpful
// in most other cases as well.
bboxCalculator.enlargeBoundingBox();
if (bboxCalculator.getBounds() != null) {