What I am trying to do is, if you select a shape on a map, I want to be able to find the distance of each line of that shape and create a label from it.
Is there a way that i can get all the points that represent the selected shape? What ive been trying to do is find the bounding box of that shape and then take the difference between the two but when I do so i get a GeometryCollection is not supported now exception.
Is there any way to get all the points of a shape?
I agree with Patrick’s idea, thanks for his sharing.
If you want to get all points of a shape, first you need to know which kind of shape you are using. And then get the points depend on different shape type, maybe you can not find the Vertices directly, such as MultipolygonShape, I think Patrick’s sample code can guide you to deal with this condition.