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

Draw square

2 Answers 184 Views
Map
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 15 Nov 2010, 11:05 AM
I saw in this post: http://www.telerik.com/community/forums/wpf/map/highlight-rectangle.aspx that it now is possible to draw circles or squares on a RadMap. Fantastic!
Could you please give me a hint on how I just could draw a simple square and than find out the topleft and the bottomright of the square?

2 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 17 Nov 2010, 05:16 PM
Hi Rieni De Rijke,

You can draw a square on the information layer using mouse events of the map control. The top-left and the bottom-right coordinates of the square you can get using the GeographicalBounds property of the MapRectangle instance.
I have attached a sample solution. I hope it helps.

Sincerely yours,
Andrey Murzov
the Telerik team
See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
Rieni De Rijke
Top achievements
Rank 1
answered on 17 Nov 2010, 08:29 PM
Thank you for the answer and the sample.
Tags
Map
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Rieni De Rijke
Top achievements
Rank 1
Share this question
or