<div dir="ltr">Hi All<div><br></div><div style>Thanks for all the help.</div><div style><br></div><div style>I draft a version first. Not sure how to contribute to the lib.</div><div style><br></div><div style>Here is some screenshot.</div>
<div style><a href="http://www.javalinux.me/?p=681">http://www.javalinux.me/?p=681</a><br></div><div style><br></div><div style><br></div><div style>Here is the demo page:</div><div style><a href="http://www.javalinux.me/openlayer/arrow/">http://www.javalinux.me/openlayer/arrow/</a><br>
</div><div style><br></div><div style><br></div><div style>Regards,</div><div style>Hua Jie</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 25, 2013 at 6:25 PM, Arnd Wippermann <span dir="ltr"><<a href="mailto:arnd.wippermann@web.de" target="_blank">arnd.wippermann@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>may be this examples can help:</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>approach like Imran described</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><a href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/Line_Direction/direction_arrow.asp" target="_blank">http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/Line_Direction/direction_arrow.asp</a></font></div>
<div><font color="#0000ff" face="Arial"></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><a href="http://gis.ibbeck.de/ginfo/apps/OLExamples/OL212/Direction_Vectors/rotation_of_simple_direction_vectors.asp" target="_blank">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" face="Arial"></font> </div>
<div><font color="#0000ff" face="Arial"></font> </div>
<div><span><font color="#0000ff" face="Arial">Arnd</font></span></div>
<div><br></div>
<div dir="ltr" lang="de" align="left">
<hr>
<font face="Tahoma"><b>Von:</b> <a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>] <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> <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br><b>Betreff:</b> Re:
[OpenLayers-Users] How to draw a arrow with openlayer?<br></font><br></div><div><div class="h5">
<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>
<div>
<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></div></div></div>
</blockquote></div><br></div>