Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

visualizationlayer's objects zindex seems to change with zoomin zoomout

$
0
0

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

publicclassMainViewModel
{
    publicObservableCollection<PathSegmentViewModel> Data { get; set; }
   
    publicMainViewModel()
    {
        Data = newObservableCollection<PathSegmentViewModel>();
        GetData();
    }
    privatevoidGetData()
    {
        Location startPoint1 = newLocation(42.700, 23.300);
        Location endPoint1 = newLocation(42.720, 23.320);
        Brush color1 = newSolidColorBrush(Colors.Green);
        PathSegmentViewModel path1 = newPathSegmentViewModel(startPoint1, endPoint1, color1);
        Location startPoint2 = newLocation(42.710, 23.310);
        Location endPoint2 = newLocation(42.720, 23.320);
        Brush color2 = newSolidColorBrush(Colors.Red);
        PathSegmentViewModel path2 = newPathSegmentViewModel(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

<Windowx:Class="VisualizationObjects_ZIndex.MainWindow"
        xmlns:local="clr-namespace:VisualizationObjects_ZIndex"
        Title="MainWindow">
    <Window.Resources>
        <DataTemplatex:Key="LineItemTemplate">
            <telerik:MapLineViewPoint1="{Binding StartPoint}"
                                 Point2="{Binding EndPoint}"
                                 local:MapUtilities.ShapeFill="{Binding MSF}"
                                 BorderThickness="6"/>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <telerik:RadMapx:Name="radMap"
                        ZoomLevel="13"MinZoomLevel="13"MaxZoomLevel="19"
                        Center="42.710, 23.310">
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider/>
            </telerik:RadMap.Provider>
            <telerik:VisualizationLayerx: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

 

 

 


Viewing all articles
Browse latest Browse all 99250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>