<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19394"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=609432210-25012013>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=609432210-25012013></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=609432210-25012013>may be this examples can help:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=609432210-25012013></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=609432210-25012013>approach like Imran described</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><A
href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/Line_Direction/direction_arrow.asp">http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/Line_Direction/direction_arrow.asp</A></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><A
href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL212/Direction_Vectors/rotation_of_simple_direction_vectors.asp">http://gis.ibbeck.de/ginfo/apps/OLExamples/OL212/Direction_Vectors/rotation_of_simple_direction_vectors.asp</A></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=609432210-25012013><FONT color=#0000ff size=2
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von
</B>???<BR><B>Gesendet:</B> Freitag, 25. Januar 2013 05:06<BR><B>An:</B> Imran
Rajjad<BR><B>Cc:</B> openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> Re:
[OpenLayers-Users] How to draw a arrow with openlayer?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hi Guys
<DIV><BR></DIV>
<DIV>I got some process. </DIV>
<DIV><BR></DIV>
<DIV>But I have a problem to draw with the mouse, during the drawing, I can see
the angle. But when I double click, the angle gone. Any tips will
help. </DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Regards,</DIV>
<DIV>Hua Jie</DIV></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Thu, Jan 24, 2013 at 10:01 AM, Ñ½Ü <SPAN
dir=ltr><<A href="mailto:yhjhoo@gmail.com"
target=_blank>yhjhoo@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>Hi Imran
<DIV><BR></DIV>
<DIV>Thanks for your reply. I believe a lot people have the same questions.
Why this feature is not released.</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Regards,</DIV>
<DIV>Hua Jie</DIV></DIV>
<DIV class=HOEnZb>
<DIV class=h5>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Wed, Jan 23, 2013 at 10:28 PM, Imran Rajjad <SPAN
dir=ltr><<A href="mailto:rajjad@gmail.com"
target=_blank>rajjad@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Hi,
<DIV><BR></DIV>
<DIV>you can make a feature whose geometry is a GeometryCollection, this
collection can contain a line and a point grouped into one geometry then you
can use the below mentioned style to draw an arrow with your line</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>
<DIV>{</DIV>
<DIV><SPAN style="WHITE-SPACE: pre-wrap"></SPAN>strokeColor:
"#00688B",</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>fillColor:
"#00688B",</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>fillOpacity :
1.0,</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>strokeWidth:
2,</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>strokeOpacity
: 0.9,</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>pointRadius:
6,</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>graphicName
:"triangle",</DIV>
<DIV> <SPAN style="WHITE-SPACE: pre-wrap"> </SPAN>rotation
:angle</DIV>
<DIV>}</DIV>
<DIV><BR></DIV>
<DIV>remember to compute the angle before setting this .. you should be able
to calculate angle between start and end point of your line segment.. and
also the position of point geometry which will be drawn as triage with given
rotation angle..</DIV>
<DIV><BR></DIV>
<DIV>Hope I got my point through..</DIV>
<DIV><BR></DIV>
<DIV>regards,</DIV>
<DIV>Imran</DIV>
<DIV>
<DIV><BR>
<DIV class=gmail_quote>On Wed, Jan 23, 2013 at 7:11 PM, Ñ½Ü <SPAN
dir=ltr><<A href="mailto:yhjhoo@gmail.com"
target=_blank>yhjhoo@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>Hi <SPAN
style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">Alexandre</SPAN>
<DIV><SPAN
style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px"><BR></SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">Thank
you, I will try this.</SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px"><BR></SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px"><BR></SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">Regards,</SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: arial,sans-serif; FONT-SIZE: 13px">Hua
Jie</SPAN></DIV></DIV>
<DIV>
<DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Wed, Jan 23, 2013 at 10:01 PM, Alexandre Dub¨¦
<SPAN dir=ltr><<A href="mailto:adube@mapgears.com"
target=_blank>adube@mapgears.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV text="#000000" bgcolor="#FFFFFF">
<DIV>Hi Hua Jie,<BR><BR>You could try to define your own arrow
symbol. There's one defined [here], see line 1 :<BR>
OpenLayers.Renderer.symbol.arrow = [0,2, 1,0, 2,2, 1,0,
0,2]<BR><BR> I haven't tried it, but it could do the
trick.<BR><BR>HTH,<BR><BR>Alexandre<BR><BR>[here] <A
href="http://code.google.com/p/rep-olnet/source/browse/trunk/Direction.js?r=61"
target=_blank>http://code.google.com/p/rep-olnet/source/browse/trunk/Direction.js?r=61</A>
<DIV>
<DIV><BR><BR><BR>On 13-01-23 07:09 AM, Ñ½Ü wrote:<BR></DIV></DIV></DIV>
<BLOCKQUOTE type="cite">
<DIV>
<DIV>
<DIV dir=ltr>Hi
<DIV><BR></DIV>
<DIV>As the title<BR>
<DIV><BR></DIV>
<DIV>I know how to draw a line, dot, polygon. But my customer need
some directions on the map</DIV></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Regards,</DIV>
<DIV>Hua Jie</DIV></DIV><BR>
<FIELDSET></FIELDSET> <BR></DIV></DIV><PRE>_______________________________________________
Users mailing list
<A href="mailto:Users@lists.osgeo.org" target=_blank>Users@lists.osgeo.org</A>
<A href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><SPAN><FONT color=#888888>
</FONT></SPAN></PRE><SPAN><FONT
color=#888888></FONT></SPAN></BLOCKQUOTE><SPAN><FONT
color=#888888><BR><BR><PRE cols="72">--
Alexandre Dub¨¦
Mapgears
<A href="http://www.mapgears.com" target=_blank>www.mapgears.com</A>
</PRE></FONT></SPAN></DIV><BR>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@lists.osgeo.org"
target=_blank>Users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@lists.osgeo.org"
target=_blank>Users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/openlayers-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/openlayers-users</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all>
<DIV><BR></DIV>-- <BR></DIV></DIV><SPAN><FONT color=#888888>I.R
</FONT></SPAN></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>