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
No Data
Reply
  • 3255
    posted

    Hi losoriomx,

    I have created a development issue #61272 that should be resolved in the next service release. In the meantime you can apply the following workaround: Try to set points' symbol type:

    Attach to the MapLayer(the layer that show points) "Imported" event.

    private void MapLayer_Imported(object sender, Infragistics.Controls.Maps.MapLayerImportEventArgs e)
    {
     if (e.Action == MapLayerImportAction.End)
     {
      var layer = (MapLayer)sender;

      foreach (var element in layer.Elements)
      {
       var point = element as SymbolElement;

       if (point != null)
       {
        point.SymbolType = MapSymbolType.Bubble;
       }
      }
     }

    Please let me know if it works for you.

    Regards, Ivan Kotev

Children