Step 1: Understanding the scale.
The scale of the map is 1:50000, meaning 1 cm on the map corresponds to 50000 cm (or 500 meters) on the ground. To convert the actual length of the dyke to the map length, we divide the actual length by the scale.
Step 2: Calculation.
The actual length of the dyke is 2 km, which is 2000 meters. The map length is calculated as:
\[
\text{Map length} = \frac{2000 \, \text{m}}{500} = 4 \, \text{cm}
\]
Step 3: Conclusion.
The length of the dyke on the map is 4.0 cm.