This is a migrated thread and some comments may be shown as answers.

Speed Up Load Time when Zooming GeoJSON Map - US Counties

3 Answers 86 Views
Map
This is a migrated thread and some comments may be shown as answers.
Perry
Top achievements
Rank 1
Perry asked on 06 Jan 2016, 06:12 PM

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?

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 11 Jan 2016, 04:25 PM
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!
 
0
Perry
Top achievements
Rank 1
answered on 15 Jan 2016, 04:57 PM
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.
0
T. Tsonev
Telerik team
answered on 20 Jan 2016, 02:04 PM
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!
 
Tags
Map
Asked by
Perry
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Perry
Top achievements
Rank 1
Share this question
or