Well, it took me an hour, but I managed to flatten the terrain using the circle tool and swish it over the land to flatten the map. The layout I wanted to merge it with is a self-made layout at 0 elevation, but the DEM map was too high up. It was like if you tried to add baseboards to the DEM map, there was this cliff between the DEM and normal baseboard. Now, with the DEM map flat, it will merge with normal baseboards at the same elevation.