I create a new layer group with this -
layers = new esri.layers.ArcGISDynamicMapServiceLayer("http://...");
The problem is it's not creating a dynamic layer so I can't get the scale dependency properties. It's just a regular layer object. I can get name, defaultvisibility but that's about it.
How do I create a dynamic layer?