Convert "closed" polyline to polygon with JS API 3.2

447
0
06-02-2014 10:36 AM
JorgeVinagre
New Contributor III
Hi
I have this scenario(requirements):

  1. In a web app that uses JS API (3.2) there are two layers, one of the polyline type and other a polygon type.

  2. Users should be able to select a geometry from the polyline layer and "insert it" into the polygon layer.

  3. The application should should validate if the selected polyline is "closed", convert it to a polygon and persist it into the polygon layer


Any directions on this?
I dont know which part of the api can do this

Thanks
0 Kudos
0 Replies