Roman,
Any examples of XML parsing? OR
I am trying to do the same thing. What really SUCKS and why we are
having this issue is you can't do this in a KML description:
<a href="#" onclick="javascript:opensearch()">Open Search</a> The
"onclick" is stripped out... So we have to traverse all placemarks
because of this and add htmlballoons... (This i working on searches)
BUT:
The Network link we have loads placemarks on the fly and as you move
the map more placemarks come in. But the balloons are default
balloons, so all onclick events are stripped out...
Any suggestions? Anyone??
Can we traverse Network links placemarks? OR BETTER YET, have default
balloons NOT strip out the "onclick" events...
Thanks!
The site we are working on is:
www.earthplat.com/epapp/login.aspx (you will have to signup for a free
account...)
On Sep 18, 5:42 pm, Roman N wrote:
> Hi Jerry,
>
> parseKml won't give you access to the Change elements because the
> Earth API doesn't currently support NetworkLinkControl (i.e. there is
> no interface named KmlNetworkLinkControl or KmlUpdate or KmlChange).
> However, you can certainly use the browser's native XML parsing
> capabilities to manually process NetworkLinkControls--it's just more
> of a hassle.
>
> Thanks,
> Roman
>
> On Sep 10, 4:35 pm, Jerry wrote:
>
> > Roman,
>
> > I am creating a tree in dojo from a JSON feed coming from the server
> > that contains a reference id. Then I fetch the kml and appendchild.
> > The kml uses the same reference id. I use walkdom to find the kml node
> > for that id and fly to it. If I usenetworklinks then the walkdom
> > does not walk the networklink kml and thus won't work for my
> > application.
>
> > My application is a simulation server that holds ground truth for
> > where the objects are. I want to be able to get an initial snapshot
> > and then make delta changes after that since the server may have many
> > thousands of objects.Networklinkseems just the ticket except for
> > the aformentioned problem. At this point in time I am implementing my
> > own delta update code but it is kind of a pain in the ***.
>
> > I did have an idea that I want to try though. What if I use parsekml
> > on just the change portion thenetworklink? That way I could fetch
> > > > > One workaround is to use fetchKml on thenetworklink'shref and