Tropical curves and integrable piecewise linear maps