Trouble with KML network link updates

1016
1
02-23-2011 06:01 PM
AlexRoberts
New Contributor
I want to be able to modify KML features without reloading the whole file by using <NetworkLinkControl>.

In ArcGIS Explorer I create a KML Network link pointing to http://localhost/link_control.kml

link_control.kml has a document with a single placemark.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Document id="doc_top">
    <Placemark id="pm1">
      <name>Placemark</name>
      <Point id="pt1">
 <coordinates>0,0,0</coordinates>
      </Point>
    </Placemark>
  </Document>
</kml>


I then replace the contents of link_control.kml with:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <NetworkLinkControl>
    <linkName>Updated</linkName>
  </NetworkLinkControl>
</kml>


When the network link is refreshed, this should just update the name of the Network Link.

The problem is that the placemark is also removed. I believe that refreshing a network link should retain the existing features unless they are explicitly deleted.

Is that correct or is my reading the KML spec wrong?

UPDATE:

I've also tried an example from the KML 2.1 tutorial.

Add the following as a kml network link:

http://code.google.com/apis/kml/documentation/Point.kml

That creates two placemarks.

Then add the following as a kml network link:

http://code.google.com/apis/kml/documentation/NetworkLinkControl-Update.kml

This is supposed to update one of the placemarks in the first link with a new name but it fails to load at all (error loading file).

It works as expected in Google Earth Client. Is this a bug in ArcGIS Explorer? Or does it just require a different interpretation of the syntax?

Cheers,
Alex
0 Kudos
1 Reply
VuDang
by
New Contributor
Is there any plan to fix this?  Version 2500 is still broken.
0 Kudos