How to draw a circle with EllipseData

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    28 posts
    Member since:
    Nov 2008

    Posted 14 May 2015 Link to this post

    Using c# (not xaml) how do I draw a circle using EllipseData and set the centre to the middle of the circle so I can position it? I don't understand when the documentation says the width and height of EllipseData  are in degrees.


  2. Todor
    Todor avatar
    168 posts

    Posted 18 May 2015 Link to this post

    Hi Andrew,

    The top left corner of the ellipse coincides with the given location. This means you should calculate the Location property considering the Width, Height and the center of the ellipse. In the Map Shape Data article is described that the EllipseData object's Width and Height are in spatial reference units which are degrees by default.

    Other way to achieve the desired result is to create a PathData object with proper EllipseGeometryData and add it to the Visualization layer later.

    If you need further assistance, please get back to us.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top