PDA

View Full Version : Help - creating multiple views for the same kml file?


bsewall
05-27-2008, 11:29 PM
The organization I work with has created a very detailed trail map in Google Earth that covers the entire state. The map is broken down into 26 trail Segments with approximately 20 placemarks per Segment. I would like the ability, when the user on our Website has indicated an interest in a particular Segment, to take them to that Segment on the State map. This would avoid showing them a high level, messy overview of the entire State and forcing them to drill down to the Segment.

The only way I can figure to do this is to create 26 copies of the kml file, each copy with a different View that shows just the Segment. Since the kml is over 1mb in size and changes frequently, this is not a viable option. Is there some way I could pass the latitude/longitude and range parameters as part of the instruction to load the kml file so that just the particular Segment shows up? Or is there some other way we can have just one kml file, but open it with variable Views?

Any help would be appreciated.

Munden
05-28-2008, 12:01 AM
I'm not entirely certain how your placemarks are laid out, but I can think of two ways.

You can make a 'hidden' Placemark that is set to be not visible to use as when you want to take them to a certain area. it's still visible in the Places list, but simply un-checked.

Alternatively, if you can arrange things in folders, each 'area' can have its own folder and when you select the folder itself, the user's view will change to show only enough area to display everything in the folder.

Hope that helps.

Forkboy2
05-28-2008, 05:52 AM
Hard for me to understand exactly what you're trying to do. Might help if you post link to the 1 meg KML file.

If the area covered by the different trails does not overlap, you can use Region feature of KML to show one area at a time. Even if they overlay a bit should still work. Not sure if that would help.

Matt