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

Strange behavior using MapEllispeView with radius = 0

1 Answer 39 Views
Map
This is a migrated thread and some comments may be shown as answers.
Etienne
Top achievements
Rank 1
Etienne asked on 22 Dec 2016, 10:01 PM

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

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Dec 2016, 09:22 AM
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.
Tags
Map
Asked by
Etienne
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or