I have a dynamic map service with 2 layers. One of the layers is scale dependent. How to I check if the map is within it's visible extent? The visible property always seems to be true for both layers.
Support for scale dependency by feature layers and feature services will be included in our next release. The current API and previous versions did not have it yet so you are seeing the scale not respected.
If you find your scale dependent layer does not work as you set in Client api, most likely the data source of your map service�?featureclass�?does not have correct spatial reference. Check the spatial reference of you data source first.