Coordinate c2 = context.getMap().getViewportModel().pixelToWorld(x2, y2);
Envelope bounds = new Envelope(c1, c2);
// remove the bounding box selection
MapCommand cmd = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.NONE);
getContext().sendASyncCommand(cmd);
selectionBoxCommand.setValid(false);
getContext().getViewportPane().repaint();
}