Use unique ids for both the IconStyle
and LabelStyle
tags and refer to these in the targetHref for updates.
Note: Multiple changes can appear in a single <Change>
element (as you have in your original example) or each can be wrapped in its own Change element as children of the <Update>
element (as shown below).
<Style id="pushpin">
<IconStyle id="myiconstyle">
...
</IconStyle>
<LabelStyle id="mylabelstyle">
...
</LabelStyle>
</Style>
<gx:AnimatedUpdate>
<gx:duration>1.0</gx:duration>
<Update>
<targetHref></targetHref>
<Change>
<IconStyle targetId="myiconstyle">
<scale>1.0</scale>
</IconStyle>
</Change>
<Change>
<LabelStyle targetId="mylabelstyle">
<scale>1.0</scale>
</LabelStyle>
</Change>
</Update>
</gx:AnimatedUpdate>
You can find a complete example with a working tour doing exactly this here: http://googlegeodevelopers.blogspot.com/2009/04/tours-in-kml-animating-camera-and.html