zoom on a specific location when loading a multi..

27 views
Skip to first unread message

mstgermain

unread,
Sep 3, 2006, 11:12:34 PM9/3/06
to KML Discussions
Hi, I have saved a kmz file with some folders and a lot of locations.
Now, on the web, I want to open the file containing all the folders and all the locations, but I want Google to zoom on a specific location. (Not a view of all the location in the same time.)

Can we do that?

Marc

simon_a

unread,
Sep 4, 2006, 4:50:09 AM9/4/06
to KML Discussions
Hello,

Find the view you want the camera to zoom to when you open the file then right-click on the top-level folder containing all the placemarks and folders and select 'Snapshot view'.

This will define the camera position for the folder itself. (By default the view is of all placemarks in the folder, as you have found.)

Cheers,

Simon.

mstgermain

unread,
Sep 7, 2006, 8:57:03 PM9/7/06
to KML Discussions
Thank you for your reply, but this is not what I exectly want to do.

I have a lot of sites on Google earth and for every site, I have a link on my website. Actually, when I click on a link, Google Earth open the file and show this unique site. The problem is that this makes a lot of files!!! So, I want to use only one file containing all the sites, and then, when I click on a specific link on my website, the file's open in Google with all the sites, but zooming on the specific site.
If I do like you said, I will be constrain to save One file for every link and my problem will always be the same.

Do you have an other solution? Maybe the key is in web programmation...?

simon_a

unread,
Sep 8, 2006, 3:01:19 AM9/8/06
to KML Discussions
Ah, I see...

No, when you open a file from a website, it's always going to open in the 'Temporary places' folder. I can't see how any server-side scripting will help because it's going to serve the file the same way.

I guess you could create a script that would take you to a different location each time (with no icon, so you can't see it) and the placemarks you already have would come into view as well. Each time you changed the location it sent you to, it would be the same temporary filename so you wouldn't end up with lots of temporary files but the client would ask you to confirm overwriting it each time.



Simon.

jpalmer99

unread,
Sep 8, 2006, 3:43:11 PM9/8/06
to KML Discussions
Would there be any way to do this via the command line? That is, call up a specific location/placemark in the kmz/kml file if GE was called via the command line?

mcshea98

unread,
Sep 8, 2006, 11:55:14 PM9/8/06
to KML Discussions
jpalmer99,

You might be able to accomplish this using a Network Link and the <Update> tag. Documentation

I haven't tried this out yet to see if it would work.

Hope this helps,

mcshea98

jpalmer99

unread,
Sep 11, 2006, 4:19:48 PM9/11/06
to KML Discussions
I think that is on the right path, still testing thanks for the lead!

tekgergedan

unread,
Sep 12, 2006, 5:25:46 AM9/12/06
to KML Discussions
Dont expect "excellent" behavior. Remember both GE4 and kml2.1 are beta. And members are having some problems with updating the placemarks.
Reply all
Reply to author
Forward
0 new messages