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

How to draw a circle with EllipseData

1 Answer 278 Views
Map
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 2
Andrew asked on 14 May 2015, 02:19 PM

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.

Andrew

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 18 May 2015, 10:22 AM
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.

Regards,
Todor
Telerik
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
Tags
Map
Asked by
Andrew
Top achievements
Rank 2
Answers by
Todor
Telerik team
Share this question
or