I tried loading a 29 MB kml file on to the map. It does get displayed, but takes a very long time. I did not have problem with smaller kml files (around 500 kb). I use the following function to load kml files
What can be done within the code to speed up the display? I suppose caching can be done, but would it be ok to cache smaller kml files too as I would be using the same function to load all kml files.
One of our supporter thought that means you want to split a big KML file to smaller KML files to improve load speed, but I think you should only want to open cache on overlay for KML file.
If my thought is what you means, I think smaller KML is the same with big KML because our cache don’t related with datasource, it will save tile images. If you don’t want to cache smaller KML file, you can add a judgement before load the file, so the cache only work for big KML file.
I am not sure how caching could be done in ThinkGeo. Kindly give me more info on how to accomplish it. What would be the options available other than splitting the actual KML file?
Hi Don, I tried as you advised…but there is no difference… It takes so long and sometimes it does not show up at all.
After loading the KML file, I did a fit to layer. It started showing up after 5 minutes. Again after doing some zooming in and out, the kml does not show on the map. I did a Fit to layer once again as I expected the tiles would have been already generated after the first fit. Even after waiting for 10 mins, the kml does not show up.
I can send you the kml file (29 mb) for you to test… how do I send it? The same file takes just a few seconds to load in ArcGIS Explorer Desktop.
KML is a file format used to display geographic data with rich information, including locations, images etc. it’s the format for loading small data, but seems like the data you provided is more than 29MB. As we know, KML file is organized in XML format and hard to create the index for it as there are too many other elements. If we check the KML official website from Google at developers.google.com/kml/d...apsSupport , we can see there is a suggested size limit for KML , seems like It’s for displaying on Google Maps, but I guess we can take a reference:
Maximum fetched file size (raw KML, raw GeoRSS, or compressed KMZ)