why a simple shape Incorrectly drawn?

2 posts, 0 answers
  1. Reza
    Reza avatar
    1 posts
    Member since:
    Sep 2012

    Posted 22 Sep 2012 Link to this post

    I want to draw a simple ellipse in radmap 
    with width and height 
    but incorrectly like 
    an elongated oval is drawn Why do this?
    Other shape like rectangle has same problem 
    I add a simple radmap:

           <telerik:RadMap x:Name="radMap">
                    <telerik:EmptyProvider />
                <telerik:InformationLayer x:Name="informationLayer">
            </telerik:RadMap> In code behind:
                var newShape = new MapEllipse()
                    Location = new Location()
                        Latitude = 50,
                        Longitude = -111,
                    Fill = new SolidColorBrush(Color.FromArgb (0xFF, 0xF0, 0xB5, 0x85)),
                    Width = 20000,
                    Height = 20000
                radMap.Center = new Location( newShape.Location.Latitude, newShape.Location.Longitude);
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 26 Sep 2012 Link to this post

    Hello Reza,

    It is expected behavior. The width and height of MapEllipse are assigned in kilometers or miles. RadMap uses the Mercator projection.
    The Mercator projection distorts the size and shape of large objects, as the scale increases from the Equator to the poles, where it becomes infinite. So, the MapEllipse does not look always like standard ellipse when its width is equal its height.

    Andrey Murzov
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  3. DevCraft R3 2016 release webinar banner
Back to Top