AnsweredAssumed Answered

How to get linear distance units of a layer?

Question asked by akmanchianand on Feb 16, 2015
Latest reply on Mar 7, 2015 by rscheitlin

This must be an easy one, but i am having a hard time with this.


How do i read the linear distance units of a feature layer or a dynamic map service using the javascript API?


for e.g., wkid 4326 it is degrees, 102100 it is meters and for some it is feet etc.,

what about spatial references which have only a WKT (custom) and no WKID?


i  need to display the linear units of a layer (feature/dynamic) programatically to show the units in which the areas and lengths are being displayed in a popup.