hi dear Dinko
thank you very much for your time
well about the projects i was actually able to reproduce the issue on the project with few tweaks:
1-the mainviewmodel has changed so that to define two smaller lines that actually dont cover eachother completely! and one is half the other one and therfore covering half the other one
public
class
MainViewModel
{
public
ObservableCollection<PathSegmentViewModel> Data {
get
;
set
; }
public
MainViewModel()
{
Data =
new
ObservableCollection<PathSegmentViewModel>();
GetData();
}
private
void
GetData()
{
Location startPoint1 =
new
Location(42.700, 23.300);
Location endPoint1 =
new
Location(42.720, 23.320);
Brush color1 =
new
SolidColorBrush(Colors.Green);
PathSegmentViewModel path1 =
new
PathSegmentViewModel(startPoint1, endPoint1, color1);
Location startPoint2 =
new
Location(42.710, 23.310);
Location endPoint2 =
new
Location(42.720, 23.320);
Brush color2 =
new
SolidColorBrush(Colors.Red);
PathSegmentViewModel path2 =
new
PathSegmentViewModel(startPoint2, endPoint2, color2);
Data.Add(path1);
Data.Add(path2);
}
}
2- the main window is change to zoom on the location and defines a zoom range to make it easier too zoom in and out to reproduce the issue
<
Window
x:Class
=
"VisualizationObjects_ZIndex.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:VisualizationObjects_ZIndex"
Title
=
"MainWindow"
>
<
Window.Resources
>
<
DataTemplate
x:Key
=
"LineItemTemplate"
>
<
telerik:MapLineView
Point1
=
"{Binding StartPoint}"
Point2
=
"{Binding EndPoint}"
local:MapUtilities.ShapeFill
=
"{Binding MSF}"
BorderThickness
=
"6"
/>
</
DataTemplate
>
</
Window.Resources
>
<
Grid
>
<
telerik:RadMap
x:Name
=
"radMap"
ZoomLevel
=
"13"
MinZoomLevel
=
"13"
MaxZoomLevel
=
"19"
Center
=
"42.710, 23.310"
>
<
telerik:RadMap.Provider
>
<
telerik:OpenStreetMapProvider
/>
</
telerik:RadMap.Provider
>
<
telerik:VisualizationLayer
x:Name
=
"visualizationLayer"
ItemsSource
=
"{Binding Data}"
ItemTemplate
=
"{StaticResource LineItemTemplate}"
/>
</
telerik:RadMap
>
</
Grid
>
</
Window
>
3- now the issue doesnt happen on every zoom in and out i had to do it a couple of times and hover over and off the the red line while zooming in and out. after a couple of times the redline goes green like the one under it and with another zoom in and out it goes back to red. and after it happens once it seems to happen more often from then
although it happens easier in my project but it does happen in your's too
i hope you can reproduce it
thank you in advance for your help