VisualizationLayer

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    27 posts
    Member since:
    Nov 2008

    Posted 31 Jul 2014 Link to this post

    If I add items to a VisualizationLayer from c# nothing is displayed. However, it works using the same code with an InformationLayer. What do I need to do to get the VisualizationLayer to work?

    Andrew

  2. Andrew
    Andrew avatar
    27 posts
    Member since:
    Nov 2008

    Posted 31 Jul 2014 Link to this post

    I guess I need to create a MapVirtualizationSource to provide the data to the VisualizationLayer. However when I try and create a MapPolyline object in BackgroundItemsRequest I get an "The calling thread must be STA, because many UI components require this." error.

    I can see you example code works but they only create one or two objects. I have several hundred thousand objects I need to display so the virtualisation is clearly critical.

    Help! What am I doing wrong?

    Andrew
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top