<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE>@font-face {
        font-family: Calibri;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
        COLOR: black; mso-style-type: personal-compose
}
SPAN.footertxt1 {
        COLOR: black; FONT-FAMILY: Calibri
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=046293417-30032010><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=046293417-30032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left>"${angle}"<SPAN class=046293417-30032010> will expand to
aFeature.attributes.angle. Add this attribute to your features, then your
styleMap should do the rest.</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=046293417-30032010></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=046293417-30032010><FONT face=Arial
color=#0000ff size=2>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=046293417-30032010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>David
Hine<BR><B>Gesendet:</B> Dienstag, 30. März 2010 15:11<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] seeking advice to
orient image on layer<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">Dear OL
List</SPAN></FONT><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">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 face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">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 face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">Your suggestions
would be very welcome.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">Thanks<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">David
Hine<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">Snip….<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">vectors = new
OpenLayers.Layer.Vector(<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
"Wind Direction",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
{<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
styleMap: new OpenLayers.StyleMap({<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
"default": {<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
externalGraphic: "img/windarrow.png",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
//graphicWidth: 17,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
graphicHeight: 67,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
graphicYOffset: -33,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
rotate: "${angle}",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
fillOpacity: "1"<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
},<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
"select": {<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
cursor: "crosshair",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
externalGraphic: "img/marker.png"<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
})<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
map.addLayer(vectors);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
var features = [];<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
var x = 145.85318;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
var y = -17.53748;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
var angle = {location: "./txtgen_wind_dir.php"}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
rotate: "${angle}",<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
origin = (x, y),<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
features.push(<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
new OpenLayers.Feature.Vector(<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
new OpenLayers.Geometry.Point(x, y), {angle: "${angle}", origin: (x,
y)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
);
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">
vectors.addFeatures(features);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN lang=EN-AU
style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: Calibri">snip….<o:p></o:p></SPAN></FONT></P></DIV></BODY></HTML>