I am trying to add published map service as a dynamic layer on the base map. If I give extent: fullextent or initialExtent available on mapservice then the map is not displayed at sufficient zoom level.
For example, I am trying to add following mapservice as a dynamic layer to the base map. But the output is not shown at sufficient zoom level.
In my case, I can't hardcode extent values when I instantiate map object. Because my customers can provide any mapservice in my code and accordingly I need to show it on the map. My design decision is - whatever extent customer has set it up in ArcMap before publishing the map service, I will use that to show the map.
Any suggestions to show dynamic layer at sufficient zoomed level when added to the basemap? Also, suggest if there is a better design decision.