This is a migrated thread and some comments may be shown as answers.

How to draw a polygon on radmap, and calculate its area

6 Answers 368 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jimmy
Top achievements
Rank 1
Jimmy asked on 03 Oct 2011, 12:39 PM
I want to draw a polygon when mouse enter on radmap , and double-click the map to end to  calculate  the polygon area,How can i do ? 

6 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 06 Oct 2011, 01:02 PM
Hi Jimmy,

I have attached a sample solution which allows to draw polygon using the MapMouseClick and MapMouseDoubleClick events.
The calculation of total area which is covered by polygon on the Earth is a very complicated mathematic task. Unfortunately it is out of scope the support of RadMap control.

All the best,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jimmy
Top achievements
Rank 1
answered on 07 Oct 2011, 12:10 AM
Thanks for you help!!!
0
Sadjad
Top achievements
Rank 1
answered on 03 Mar 2013, 07:07 PM
Thanks
0
Kenny Johansen
Top achievements
Rank 1
answered on 15 Mar 2013, 10:27 AM
When using this example I sometimes get wired results.

I start clinking on the map to draw polylines (works fine), but sometimes when I drag the mouse over or left of the first position all the polylines I have drawn gets displaced away from the mouse pointer. When I double click the polygon gets drawn in the correct place.

Any solution to this?

0
Andrey
Telerik team
answered on 19 Mar 2013, 11:30 AM
Hi Kenny,

Unfortunately we can't reproduce the problem. Could you, please, provide us with step-by-step description of how we can reproduce this issue? Also could you, please, provide us with some screenshots which clarify the problem?

All the best,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Autolog
Top achievements
Rank 1
answered on 19 Mar 2013, 11:53 AM

I fixed it by upgrading to RadControls 2013 Q3 and Silverlight 5

Tags
Map
Asked by
Jimmy
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Jimmy
Top achievements
Rank 1
Sadjad
Top achievements
Rank 1
Kenny Johansen
Top achievements
Rank 1
Autolog
Top achievements
Rank 1
Share this question
or