I've found an example of creating custom request to WMS service written in non-AMD style:
I'm trying to implement this kind approach but in modern AMD approach.
Unfortunately, as a beginner, I don't know how to rewrite this example to fit AMD style. Especially the part with defining my.CityStatesRiversUSAWMSLayer() function with callback is out of my reach.
Could you please provide the mentioned example in AMD style?