Envelope bound;
// select features using the drawn bbox
IViewportModel viewportModel = getContext().getMap().getViewportModel();
Coordinate startPoint = viewportModel.pixelToWorld(mergeContext.getBBoxStartPoint().x,
mergeContext.getBBoxStartPoint().y);
Coordinate endPoint = viewportModel.pixelToWorld(xyMouse.x, xyMouse.y);
if (startPoint.equals2D(endPoint)) {
// when it was a click(start and end coordinates are equal)
// get a little bbox around this point.
bound = getContext().getBoundingBox(xyMouse, 3);