Contour layer

#4613 implementation