How to automate landscape layer painting using a texture map

@RecourseDesign Thank you for this. Could you elaborate a bit further? which node do I connect to the input of this and which nodes do the outputs go to?