sanjayjadhav

How to give users capability to add new features as circles,rectangles etc?

Discussion created by sanjayjadhav on Jun 14, 2011
Latest reply on Sep 9, 2013 by nana8803
Hi,

We are developing an apps in which we have to give editing functionality to our users. Parcels polygon is the only editable layer in the apps.Now,users should be able to add new features as circles,rectangles,polygons.

I am fairly new to JS API.So, I am not sure if this thing (creating new circles,rectangles) is possible in JS API. I am really confused as where to start from and how should I proceed.

I went through the online API documentation and found that esri.dijit.editing.Editor-all class has a constants for creating arrow,ellipse, triangle etc. However, I donot understand how to use this constants in the code.Our user would click rectangle button and he should be able to draw a new parcel as rectangle.Same is with circle.polygon etc.

So, can anybody help me out here as to what to do and how to do it? Any help is appreciated.

Regards,
Sanjay.

Outcomes