* @param bounds
*/
protected void sendSelectionCommand(MapMouseEvent e, Envelope bounds) {
MapCommand command;
if( e.isModifierDown(MapMouseEvent.MOD2_DOWN_MASK) ) {
command = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.ADD);
}else if( e.isModifierDown(MapMouseEvent.MOD1_DOWN_MASK) ){
command = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.SUBTRACT);
}else{
command = new BBoxSelectionCommand(bounds, BBoxSelectionCommand.NONE);
}
getContext().sendASyncCommand(command);
selecting = false;
shapeCommand.setValid(false);