Map performance with complex shape files

4 posts, 0 answers
  1. Steve
    Steve avatar
    3 posts
    Member since:
    Dec 2015

    Posted 13 Jan Link to this post

    Hi,

    I need to be able to display census tract shape date from the Census Bureau. I'm able to read in the shape file just fine but once I do the performance to drag and pan the map goes down. 

    Any suggestions on how to improve performance? I've tried simplifying the shape data and while it helps a little its still slow.

    If that's just the nature of the beast is there a way to clear out all the shape data from the visualization layer? Hiding the layer doesn't seem to restore the performance?

     

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Jan Link to this post

    Hi Steve,

    You can try setting UseBitMapCache = False on the VisualizationLayer. If this does not speed up the performance, probably you have thousands of points and this is critical for the overall WPF rendering engine. How much items / points do you load ?

    Regards,
    Petar Mladenov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    3 posts
    Member since:
    Dec 2015

    Posted 14 Jan Link to this post

    Thanks for the reply!

     I did some digging and found a different example that recommended using a Virtualization source to read the map shape data in.

    I also set UseBitMapCache=false as you recommended and I'm not noticing much of a difference.

    Currently I'm loading two different census tract shape files, I'm not sure the number of points but they are adding 2,061 different polygons to the map. 

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 19 Jan Link to this post

    Hello Steve,

    2000+ Polygones * (4-5-6-7) Points in each polygon means 10-20 000 Points which is too much for the WPF Rendering engine. 

    The best way to improve the performance in scenarios with so many points / shapes is to use Virtualization.
    Check out the Map Shape Data virtualization help article and set up an IMapItemsVirtualizationSourcesource in your project.

    Could you also please elaborate more on the idea for clearing all the shapes data ? We are a bit confused what you have in mind.

    Regards,
    Petar Mladenov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top