specify which placemark gets the initial zoom, and some feature requests

4 views
Skip to first unread message

gyorgy....@gmail.com

unread,
Aug 14, 2007, 1:42:46 AM8/14/07
to KML Developer Support - Getting Started
Hello Guys,

I would have two questions:
1.
In a KML file, Is it possible to specify whick kml placemark gets the
initial zoom in google earth when the user clicks on a kml link?

Is it also possible, that depending on which <a href..> the user
clicks, the placemark which gets the zoom would change?

2.
I would like to suggest to the feature requests the ability to embed
html objects like swf files in google earth :)

Cheers,
Giorgio


Jonathan van Tuijl

unread,
Aug 14, 2007, 9:08:01 AM8/14/07
to KML Developer Support - Getting Started
> 1.
> In a KML file, Is it possible to specify whick kml placemark gets the
> initial zoom in google earth when the user clicks on a kml link?

If I understood that correctly you just set the container's LookAt to
that of the desired feature.

> Is it also possible, that depending on which <a href..> the user
> clicks, the placemark which gets the zoom would change?

If it's possible it would probably work like this:
<Placemark id="bla">...</Placemark>
<Placemark>...<description><![CDATA[<a href="#bla">bla bla bla!</
a>]]></description>...</Placemark>

> 2.
> I would like to suggest to the feature requests the ability to embed
> html objects like swf files in google earth :)

Including media could be useful, but please not specifically Flash.

Jonathan

ManoM

unread,
Aug 14, 2007, 9:27:53 AM8/14/07
to KML Developer Support - Getting Started
Hi Giorgio,

You might want to add your feature request to the KML Feature Request
page:
http://groups.google.com/group/kml-support/web/kml-feature-requests

ManoM

giorgio

unread,
Aug 14, 2007, 3:27:52 PM8/14/07
to KML Developer Support - Getting Started
Thanks Guys for coming back :)

For question 1 let me elaborate:

When I launch Google Earth it starts out with the Earth spinning
around and zooming in on the area which is contained in the kml.

However, if I have a kml with values all around the Earth, can I
specify which placemark is zoomed at without the user doing anything?

I was checking out the LookAt but as I understand this has more to do
with what angle the photo or whatever was taken.

As of question 2 I was not aware I can edit the feature list, but I
will go ahead and add this :)

Thanks,
Gyuri

> > Giorgio- Idézett szöveg elrejtése -
>
> - Idézett szöveg megjelenítése -

ManoM

unread,
Aug 14, 2007, 7:03:29 PM8/14/07
to KML Developer Support - Getting Started
Jó Napot Gyuri,

LookAt should be what you're looking for. When a KML document is open,
it moves to the LookAt for the highest level container, usually a
Document and grabs that LookAt.

ManoM

giorgio

unread,
Aug 15, 2007, 10:08:24 AM8/15/07
to KML Developer Support - Getting Started
Szia ManoM,

That is quite fluent Hungarian :), are you related to Hungary by any
means? :)

Thank you very much for the LookAt elaboration, I will definitely dig
around it!

ManoM

unread,
Aug 15, 2007, 12:52:19 PM8/15/07
to KML Developer Support - Getting Started
Laktam Budapesten, két évvol. De csak kicsit magyarrul beszélyek. Nem
sokat beszéltam magyarrul tízen három éveken. Tanultam a magyar
Történelemet. Sorry, I think I just about used up my Hungarian there.
I lived there in 89-90, and 93-94, and initially studied Hungarian
history.

Mano

Reply all
Reply to author
Forward
0 new messages