Errors of using PolylineData with visualization layer

0 Answers 18 Views
Map
BNM2024
Top achievements
Rank 1
Iron
BNM2024 asked on 11 Mar 2024, 12:10 PM

Hello ,

I'm currently working on a visualization layer to display a trace line of a Location Collection. To achieve this, I have set the ItemsSource of the layer to an Observable Collection. Additionally, I am using PolylineData to visualize the Location Collection. However, during implementation, I encountered the following errors:

  • The specified value cannot be assigned. The following type was expected: "DependencyObject".
  • Property 'VisualTree' does not support values of type 'PolylineData'.

Here is the code portion 

                                <telerik:VisualizationLayer x:Name="visualizationLayer" ItemsSource="{Binding ObJItems}">
                                    <telerik:VisualizationLayer.ItemTemplate>
                                        <DataTemplate>
                                            <telerik:PolylineData Points="{Binding TrackPoints}">
                                        <telerik:PolylineData.ShapeFill>
                                            <telerik:MapShapeFill Stroke="Blue" 
                                      StrokeThickness="2" />
                                        </telerik:PolylineData.ShapeFill>
                                    </telerik:PolylineData>
                                        </DataTemplate>
                                    </telerik:VisualizationLayer.ItemTemplate>
                                </telerik:VisualizationLayer>


No answers yet. Maybe you can help?

Tags
Map
Asked by
BNM2024
Top achievements
Rank 1
Iron
Share this question
or