I am having trouble getting a NetworkLinkControl KML command to work.
The drive.google.com URL matches Network Link to Slot 2
and I am trying to use NetworkLinkControl to delete kmlslot2
.
I know the targetHref
tag works, because I have successfully been able to append a placemark under the Network Link to Slot 2
directory, but have been unable to get the delete function to work.
Below is the KML text, along with an included picture of the KML that I am trying to modify. I am using Google Earth Pro 7.1.8 on macOS for reference.
**I just realized I was confusing name and object id, but even after adding an object id ex: <NetworkLink id="kmlslot2">
it still isn't working.
Any idea why this isn't working?
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<NetworkLinkControl>
<Update>
<targetHref>https://drive.google.com/uc?export=download&id=**</targetHref>
<Delete>
<NetworkLink targetId="kmlslot2"/>
</Delete>
</Update>
</NetworkLinkControl>
</kml>