how to properly implement Open Transport Map

Discussion created by ngalford on Jan 7, 2013
Latest reply on Jan 8, 2013 by ngalford
I've worked through the example (which is broken) and can't seem to properly pull the Open Streetmap layers as a web tiled layer.  In the example the server is returning back a 404 error, which leads me to believe that the service call or address has been updated by open transport maps.
This is the address given in the sample from Open Transport Maps

Here's my non-working attempt:

 var sub = ["a","b","c"];
            var wtl = esri.layers.WebTiledLayer;
            var cycleMap = new wtl("http://{subDomains}${z}/${x}/${y}.png",
                "id": "OTranspoMap",
                "copyright": "OTM",
                "subDomains": sub

I'm getting this error:
Uncaught TypeError: Cannot call method 'toString' of undefined

I've been searching around and haven't found anyone else with this question, but sorry if this is a repost.