Select to view content in your preferred language

Drawing toolbar

1514
2
08-17-2016 01:05 AM
MahmoudSharif
New Contributor

Hello all I want to draw a POLYGON on the map with length in miles or Km is this possible

0 Kudos
2 Replies
FC_Basson
MVP Regular Contributor

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)

0 Kudos
MahmoudSharif
New Contributor

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

0 Kudos