Strange behavior using MapEllispeView with radius = 0

2 posts, 0 answers
  1. Etienne
    Etienne avatar
    51 posts
    Member since:
    Sep 2014

    Posted 22 Dec 2016 Link to this post

    Hi,

    I was trying to display an ellipse with editable radius on the map and I found a strange behavior when the radius is set to zero after being bigger. The ellipse keeps its last non zero radius and move around when I zoom or move around. I've attached a sample project to show that behavior. So just zoom one time so that the shape is displayed (I don't understand neither why this is necessary) and change the size of the ellipse to zero using the slider on the top. This behavior also happens when using MapPathView containing ArgSegments from and to the same position so I guess this may happens with all Map*View with dimensions set to zero.

    Thank for taking a look,

    Etienne

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2969 posts

    Posted 27 Dec 2016 Link to this post

    Hello Etienne,

    You have hit an issue in the RadMap MapShapeBindableWrapper's  code which updates their Geometry.
    We logged it in our feeedback portal. The initial show is also postponed because of code which subscribes for width / height change notification. We will address this issue as well when working on the core one.

    As a workaround we could suggest either using Visibility for hiding the circle with no width / height  or changing the BindableWrapper object in the template with FrameworkElements (in this case Ellipse).

    Regards,
    Petar Mladenov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top