Starting view in KML file

1 view
Skip to first unread message

pbru...@gmail.com

unread,
Aug 26, 2007, 1:08:43 PM8/26/07
to KML Developer Support - Getting Started
Is there a way to set a starting view in the KML file? I have looked
at the ref page and nothing stands out.

Jonathan van Tuijl

unread,
Aug 26, 2007, 1:38:43 PM8/26/07
to KML Developer Support - Getting Started
> Is there a way to set a starting view in the KML file? I have looked
> at the ref page and nothing stands out.

See http://groups.google.com/group/kml-support-getting-started/browse_thread/thread/30e5af578ed450f1

Jonathan

pbru...@gmail.com

unread,
Aug 26, 2007, 7:16:20 PM8/26/07
to KML Developer Support - Getting Started
I looked at that posting and followed it, but it is still centering
the view in the middle of my placemarks. I tryied to put the
placemarks in a folder within a sub-document and it still did it. Am
I missing something?

Phil

On Aug 26, 12:38 pm, Jonathan van Tuijl wrote:
> > Is there a way to set a starting view in the KML file? I have looked
> > at the ref page and nothing stands out.
>

> Seehttp://groups.google.com/group/kml-support-getting-started/browse_thr...
>
> Jonathan

Jonathan van Tuijl

unread,
Aug 26, 2007, 8:47:55 PM8/26/07
to KML Developer Support - Getting Started
> I looked at that posting and followed it, but it is still centering
> the view in the middle of my placemarks. I tryied to put the
> placemarks in a folder within a sub-document and it still did it. Am
> I missing something?

Probably; something this simple works for me:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Folder>
<name>Parent folder</name>
<LookAt>
<longitude>1</longitude>
<latitude>2</latitude>
<range>1000000</range>
</LookAt>
<Placemark>
<name>Point A</name>
<Point>
<coordinates>3,4</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Point B</name>
<Point>
<coordinates>5,6</coordinates>
</Point>
</Placemark>
</Folder>
</kml>

Here the LookAt doesn't point at anything in particular, but there's
nothing stopping you from LookingAt contained points or anything else.

Jonathan

pbrunson

unread,
Aug 28, 2007, 11:02:18 AM8/28/07
to KML Developer Support - Getting Started
I will give that a try. What I did do is use a network link to
another kml file (local, but moving it to a web server later) that
holds all the points. In the doc.kml file I put the starting point,
the screen overlay, and the network link. It is working just llike it
should now.

Phil

Reply all
Reply to author
Forward
0 new messages