AnsweredAssumed Answered

How to find zoomlevel for ArcGISDynamicMapServiceLayer?

Question asked by bforbhavin on May 3, 2016
Latest reply on May 6, 2016 by rscheitlin

I am using dynamic map service layer with basemap. Once I find feature using selectFeatures(), I want to center and zoom the selected feature. Consider only one feature has been selected. I use centerAndZoom() of the api and it works fine when no basemap available.


e.g. I provide my customers to specify one parameter value. If this parameter is specified as 2 then I calculate zoomFactor = 0.02 (i.e. 20% zoom in to the map) if no basemap available.


Now, if basemap is available then I can't use zoomFactor. How can I translate zoomFactor to level when basemap is available so, I can see the same output?


I tried to find level based on LODs. But I don't know which scale I should compare when traversing into LOD array.