Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
Problen with points layer on xammap
posted

Hi, we are testing the silverlight data visualization product, we can add a polygon layer, but if we put a points layer over the polygon layer, the points do not appear on the map, only the polygons, we have added another polygon layer and after the point layer, we can see the 2 polygon layers, polyline layers, but no point layers, how can we solve this?

Parents Reply
  • 555
    posted in reply to [Infragistics] Ivan Kotev

    Here is the XAML

    <UserControl x:Class="silvmapas.MainPage"
    xmlns=
    http://schemas.microsoft.com/winfx/2006/xaml/presentation
    xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
    xmlns:d=http://schemas.microsoft.com/expression/blend/2008
    xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="900" xmlns:ig="http://schemas.infragistics.com/xaml">
    <Grid x:Name="LayoutRoot" Background="White">
    <ig:XamMap HorizontalAlignment="Left" Margin="10,10,0,0" Name="XamMap1" VerticalAlignment="Top" Width="880" Height="580" MapProjectionType="Equirectangular">
    <ig:XamMap.Layers>
    <ig:MapLayer x:Name="Division">
    <ig:MapLayer.Reader>
    <ig:ShapeFileReader Uri="ShapeFiles/municipios" DataMapping="ToolTip=NOMBRE; Value=NOMBRE"/>
    </ig:MapLayer.Reader>
    </ig:MapLayer>
    <ig:MapLayer x:Name="cabeceras" Imported="MapLayer_Imported">
    <ig:MapLayer.Reader>
    <ig:ShapeFileReader Uri="ShapeFiles/cabeceras"/>
    </ig:MapLayer.Reader>
    </ig:MapLayer>
    </ig:XamMap.Layers>
    <ig:MapNavigationPane HorizontalAlignment="Left" />
    </ig:XamMap>
    </Grid>
    </UserControl>
    And here is the code behind
    Imports Infragistics.Controls.Maps
    Partial Public Class MainPage
    Inherits UserControl
    Public Sub New()
    InitializeComponent()
    End Sub
      Private Sub MapLayer_Imported(ByVal sender As ObjectByVal e As Infragistics.Controls.Maps.MapLayerImportEventArgs)
    If e.Action = MapLayerImportAction.End Then
    Dim layer = DirectCast(sender, MapLayer)
    For Each element In layer.Elements
    Dim point = TryCast(element, SymbolElement)
    If point IsNot Nothing Then
    point.SymbolType = MapSymbolType.Bubble
    point.SymbolSize = 4
    End If
    Next
    End If
    End Sub
    End Class
Children