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.
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.0"> <Style id="thinRedLine"> <LineStyle> <color>ffc97000</color> <width>7</width> </LineStyle> </Style> <Style id="smallRedCircle"> <IconStyle> <color>ff00f00f</color> <scale>.500</scale> <rotation>45</rotation> <Icon> <href>icons/redcircle.png</href> </Icon> </IconStyle> </Style> <Placemark> <styleUrl>#smallRedCircle</styleUrl> <name>2012-04-25 04:07:48</name> <description><![CDATA[LatLon:49.22526434,-122.57554344<br>Altitude:0.0<br>Accuracy:48.0<br>Speed:0.0<br>Bearing:0.0]]> </description> <Point> <coordinates> -122.57554344,49.22526434 </coordinates> </Point> </Placemark> </kml>
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
