<div>I am having a problem with getting rotation to work within KML. I am generating my KML using mod_wsgi Python script. I have a simple circular icon, and would like to have it rotated on a map according to a direction of travel. I would like this to be done on the backend by Python rather than having to write javascript code to do it. Is this possible using KML? I have seen few examples of it, most of which are done in javascript and some in KML but for Google Earth. Thanks for your help. Here is the output code. I have tried placing the rotation in the Icon style, for the point, etc, nothing seems to work.<br>
</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?><br><kml xmlns="<a href="http://earth.google.com/kml/2.0">http://earth.google.com/kml/2.0</a>"><br><Style id="thinRedLine"><br>
<LineStyle><br><color>ffc97000</color><br><width>7</width><br></LineStyle><br></Style><br><Style id="smallRedCircle"><br><IconStyle><br><color>ff00f00f</color><br>
<scale>.500</scale></div><div>
<rotation>45</rotation>
<br><Icon><br><href>icons/redcircle.png</href></div><div> </Icon><br></IconStyle><br></Style><br><Placemark><br><styleUrl>#smallRedCircle</styleUrl><br><name>2012-04-25 04:07:48</name><br>
<description><![CDATA[LatLon:49.22526434,-122.57554344<br>Altitude:0.0<br>Accuracy:48.0<br>Speed:0.0<br>Bearing:0.0]]><br></description><br><Point><br><coordinates><br>
-122.57554344,49.22526434<br></coordinates><br></Point><br></Placemark><br></kml></div>