Hello all I want to draw a POLYGON on the map with length in miles or Km is this possible
thank you dear for your response but what I want is while drawing polygon show the marker length as a tooltip express the distance between two points while drawing if your answer solve this issue please can provide sample code
You can in API 3.17 with the Draw toolbar - Draw | API Reference | ArcGIS API for JavaScript 3.17
Then use the geometryEngine (esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.17 ) to calculate the area and perimeter with your selection of units (Possible Values: acres | ares | hectares | square-feet | square-meters | square-yards | square-kilometers | square-miles)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.