Select to view content in your preferred language

Adding sizes of polygon to layer

837
2
Jump to solution
09-12-2012 05:11 AM
AndrewIosida
Emerging Contributor
Hello!
1. Is it possible to calculate length of every edge of polygon?
2. And add results to layer near each side of polygon?
I calculating length of sides now by GeometryService.distance(params);
In distance() I send two points on opposite sides of the edge of polygon. It works very well but I have problems with adding label with length to correct side of polygon. I just thought that exists function that makes it all (placing sizes of polygon on map in the right place).

Thanks in advance. And sorry for my bad english.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Andrew,

This widget does a similar function to what you want to do, you may get some ideas from the code:

http://www.arcgis.com/home/item.html?id=36a80475e5d740279854398d3f7b6d01

Regards

Anthony

View solution in original post

0 Kudos
2 Replies
AnthonyGiles
Honored Contributor
Andrew,

This widget does a similar function to what you want to do, you may get some ideas from the code:

http://www.arcgis.com/home/item.html?id=36a80475e5d740279854398d3f7b6d01

Regards

Anthony
0 Kudos
AndrewIosida
Emerging Contributor
Anthony,
Thank You very much for your help! In this code I found all that I need.
With best regards, Andrew.
0 Kudos