How to draw the terrain with the layer?