Creating large KML file like the Latlon Grid

88 views
Skip to first unread message

James

unread,
Feb 10, 2011, 1:39:21 PM2/10/11
to KML Developer Support - Advanced Support for KML
I have a large kml file of polygons that covers the entire State of
Utah.
I am trying to get the file to view in the Earth API.
I would like to only have the polygons to appear as I zoom into a
small area.
I have gotten that to work by using a <region> tag with the <Lod> and
<minLodPixels> tags. However when I reach the zoomed in area and the
polygons appear the web api bogs down and become unresponsive. It
appears it is still loading and displaying all of the polygons outside
of the visible range.
I would like this to work like the lat lon grid that is an option you
can turn on in the api with ge.getOptions().setGridVisibility(true).

My question is how does the Grid option work so quickly. Do I have to
break my kml file into smaller regions or is there another option?

Josh L

unread,
Feb 10, 2011, 4:48:37 PM2/10/11
to KML Developer Support - Advanced Support for KML
You have the right idea by using regions, but it sounds like you want
to have more regions, each one with fewer polygons. I'm guessing
(hard to say without seeing your KML) that you are putting all your
polygons into a single region, which would mean they all get loaded/
parsed as soon as that region comes into view, which could cause the
bottleneck. If you're still having troubles, please post a link to
your KML.

Cheers,

-Josh

Eva McLain

unread,
Apr 9, 2013, 5:03:14 AM4/9/13
to kml-suppor...@googlegroups.com
Hello!
I am looking for the same regioned kml grid.
Did you succeeded?
I have problems with defining the regions for the visibility.
Can you please post your kml?

Thank you,
Eva
Reply all
Reply to author
Forward
0 new messages