Speed Up Load Time when Zooming GeoJSON Map - US Counties

4 posts, 0 answers
  1. Perry
    Perry avatar
    7 posts
    Member since:
    Nov 2015

    Posted 06 Jan Link to this post

    Hey All,

    I'm using Kendu UI Map object; I'm finding that larger GeoJSON data sets (even simplified ones using mapshaper.org) take a bit of time to load each time I zoom, for each zoom level. I'm working with GeoJSON data, specifically the US Counties data.  I've simplified it a bit in an attempt to shrink the filesize, but simplifying it any more distorts the county lines too much.

    Is there any way to dynamically load only the counties in view?  I'm basically loading the counties on one layer.  There are a couple other layers, but I've turned them off.  I've not separated the counties by state and tried turning on and off the states that are in view, nor do I know if determining the view port vs. map items to load is trivial or not.  It would take a bit of time to extract all the states or convert them from the stl file to GeoJSON.

    Any ideas?  Am I going about this all wrong?

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 11 Jan Link to this post

    Hello,

    Please accept my apologies for the delayed response.

    At the moment, the only facility that we have is the layer extent setting. It allows you to activate specific layers only for specific areas.
    You can have one layer per county wired to request GeoJSON via AJAX for its specific boundaries. Those will have to be generated dynamically somehow.

    We don't have data on how this will perform in reality.

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Perry
    Perry avatar
    7 posts
    Member since:
    Nov 2015

    Posted 15 Jan in reply to T. Tsonev Link to this post

    I didn't try your suggestion, as I modified the GeoJSON tohave the layers I needed and the load time speed increased.  I was inadvertently loading multiple layers of overlapping shapes.  That was taking too long.  Once I cleaned up the layers, things load faster.
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 20 Jan Link to this post

    Hi,

    I hope this solution is still valid if you merge the layers into one, in order to solve the issue from the other ticket.
    It shouldn't be a problem though.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready