<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        color:black;}
span.footertxt1
        {font-family:Calibri;
        color:black;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>Dear OL List</span></font><font
size=2 face=Calibri><span lang=EN-AU style='font-size:11.0pt;font-family:Calibri'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>I am seeking
assistance to orient an arrow image on a layer using the latest wind direction
record in a MySQL database.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>I have a php file
printing the value of the direction and I reference it by its location…
but this is not successful.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>Your suggestions would
be very welcome.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>Thanks<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>David Hine<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>Snip….<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>vectors = new
OpenLayers.Layer.Vector(<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
"Wind Direction",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
styleMap: new OpenLayers.StyleMap({<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
"default": {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
externalGraphic: "img/windarrow.png",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
//graphicWidth: 17,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
graphicHeight: 67,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
graphicYOffset: -33,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
rotate: "${angle}",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
fillOpacity: "1"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> },<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
"select": {<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
cursor: "crosshair",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
externalGraphic: "img/marker.png"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> })<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> }<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> );<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
map.addLayer(vectors);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> var
features = [];<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> var x =
145.85318;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> var y =
-17.53748;<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> var angle
= {location: "./txtgen_wind_dir.php"}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> rotate:
"${angle}",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> origin =
(x, y),<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
features.push(<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
new OpenLayers.Feature.Vector(<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
new OpenLayers.Geometry.Point(x, y), {angle: "${angle}", origin: (x,
y)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
}<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'> )<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
); <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>
vectors.addFeatures(features);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Calibri><span lang=EN-AU
style='font-size:11.0pt;font-family:Calibri;color:black'>snip….<o:p></o:p></span></font></p>
</div>
</body>
</html>