Google Maps network link

398 views
Skip to first unread message

pdoria

unread,
Apr 21, 2007, 7:44:12 AM4/21/07
to KML Support - KML Server Side Scripting
Hi All,

I've searched high and low about this...

Is there any support for a kml network link in Google Maps?

Thanks in advance.

Pedro Doria Meunier

ManoM

unread,
Apr 23, 2007, 10:44:53 AM4/23/07
to KML Support - KML Server Side Scripting
Hi Pedro,

Yes, Google Maps and the Maps API supports NetworkLinks.

ManoM

barryhunter

unread,
Apr 24, 2007, 7:07:11 AM4/24/07
to KML Support - KML Server Side Scripting
I beleive 'Supports' them in that it fetches the content on standard
links, however it doesn't fully honour time-based refresh - eg you
cant have the maps site update once a second with new data from a
network link. But I think if you refresh the maps site it will have
fetched the latest data from the network link. Also I don't think
flyto functionality is fully implemented it will just zoom on itital
loading to encompass data in the various files.

Similarly view-based refreshes are not supported either.

Bit more about it here:
http://earth.google.com/kml/mapsSupport.html
(or is that less ;)

(but would love to be proved wrong in these assumptions!)

John

unread,
Apr 24, 2007, 10:31:00 AM4/24/07
to KML Support - KML Server Side Scripting
Take a look at http://earth.google.com/kml/kml_tags_21.html#networklink.
It is possible to update a path for example each second. I tested that
and that works fine. There are a few restrictions with networklinks,
though.
1. If you want to fly to the last point of the path given by the
server, you should add <flyToView>1</flyToView> to your networklink
and place a <LookAt> tag in the kml the server returns. However, this
'flying', is pretty much too smooth so that it can't be done each
second. The camera is simply not at the specified point in one second.
Therefor I'm still looking for a fast way of changing the camera's
view. An alternative I made, is making two network links. One is
updating the path each second, the second is updating the camera view
each 10 or 15 seconds. That works better, but is still not what I
want. Maybe anyone else knows how to center the last point of the
path?? I'd love to hear that!
2. When you specify the networklink to update each second
(<refreshMode>onInterval</refreshMode><refreshInterval>1</
refreshInterval>) Google Earth doesn't add BBOX=... to the query
string. Not even when you specify that with
<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</
viewFormat>. However, when you use <refreshMode>onStop</refreshMode>
(which means, the server will be requested for new data when the
camera stops moving, or the user stops dragging) the BBOX parameter is
added to the query string...

So anyway: yes, you can update a line or a placemark, or another
element on a time-based refresh. But as far as I can see (as you can
read above) it's has not all the possibilities I would wish it had...

Johan Meijer
The Netherlands


PS: Sorry for my probably bad english...

> > > Pedro Doria Meunier- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Valery35

unread,
Apr 24, 2007, 1:00:58 PM4/24/07
to KML Support - KML Server Side Scripting
We can use View based refresh link to Time interval link if this
need :)


On Apr 24, 8:31 pm, John wrote:
> Take a look athttp://earth.google.com/kml/kml_tags_21.html#networklink.

barryhunter

unread,
Apr 25, 2007, 6:47:27 AM4/25/07
to KML Support - KML Server Side Scripting
Maybe I am missing something, but view based refresh network links
_don't_ work in Google Maps (they do in Google Earth!)

See:
http://maps.google.co.uk/maps?f=q&hl=en&q=http://www.nearby.org.uk/google/setupCircle.kml.pl&layer=&ie=UTF8&z=14&om=1

That file generates a view-based network link that links to a file to
generate a circle - in effect maintaining a circle in the center of
the Google Earth view.

The circle that does appear is just the 'default' that the script
returns if no view location information is specified - so I can only
conclude that Google Maps doesn't support view based refresh - and
instead just treats it like a normal network link.

Time based refresh will appear to work in that they dont need any
additional URL parameters to work, but they won't honour fine grained
times. Eg you cant create a time-based refresh updating once a second
and expect to be able to watch the placemark move over the google maps
screen.

I haven't tested if Googles 'caching' of time based refresh network
links honours short time scales, so that you can continuously click
the 'Link to this page' to watch the animation. (but will do later
unless someone else has)

--

Barry

- www.nearby.org.uk - www.geograph.org.uk -

ManoM

unread,
May 4, 2007, 5:15:55 PM5/4/07
to KML Developer Support - KML Server Side Scripting
Hi Barry,

That's correct, a NetworkLink in Google Maps only pulls the data once.
It doesn't honor view or time based refresh.

ManoM

On Apr 25, 3:47 am, barryhunter wrote:
> Maybe I am missing something, but view based refresh network links
> _don't_ work in Google Maps (they do in Google Earth!)
>

> See:http://maps.google.co.uk/maps?f=q&hl=en&q=http://www.nearby.org.uk/go...

Reply all
Reply to author
Forward
0 new messages