@Override
    public void mouseReleased(MouseEvent e) {
        if (pressedKeyCode == 17) // ctrl key
        {
            newPosition = e.getPoint();
            drawMapComponent.dragNDropZoom(oldPosition.getX(), oldPosition.getY(), newPosition.getX(), newPosition.getY());
        }
        drawMapComponent.drawRectangle(0, 0, 0, 0, false);
        oldPosition = null;
        newPosition = null;
        repaint();
    }