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

7 posts, 0 answers
  1. Jimmy
    Jimmy avatar
    24 posts
    Member since:
    Nov 2006

    Posted 03 Oct 2011 Link to this post

    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 ? 
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Oct 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Jimmy
    Jimmy avatar
    24 posts
    Member since:
    Nov 2006

    Posted 06 Oct 2011 Link to this post

    Thanks for you help!!!
  5. Sadjad
    Sadjad avatar
    2 posts
    Member since:
    Jan 2013

    Posted 03 Mar 2013 Link to this post

    Thanks
  6. Kenny Johansen
    Kenny Johansen avatar
    1 posts
    Member since:
    May 2010

    Posted 15 Mar 2013 Link to this post

    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?

  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Mar 2013 Link to this post

    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.

  8. Autolog
    Autolog avatar
    12 posts
    Member since:
    Jun 2010

    Posted 19 Mar 2013 Link to this post

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

Back to Top
DevCraft banner