<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Hua Jie,<br>
      <br>
        What you did is really nice!  You could contribute this by
      making an example out of it :<br>
      <br>
        * fork openlayers 'master' branch and clone<br>
        * create new .html and .js in the 'examples' directory to create
      an example out of it, using the same files the other examples do.<br>
        * add/commit/push/pull request<br>
      <br>
        Even though the class you created wouldn't be part of the actual
      core, it would still demonstrate how to assemble OpenLayers core
      components to achieve this.<br>
      <br>
      Regards,<br>
      <br>
      Alexandre<br>
      <br>
      <br>
      On 13-01-28 10:46 PM, 杨华杰 wrote:<br>
    </div>
    <blockquote
cite="mid:CACx=zn_DC+H2xsFvHbajBnofw_m8HmTVLvNQfLM9u2Bh-eqxWg@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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 moz-do-not-send="true"
              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">
            <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 moz-do-not-send="true"
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> </div>
              <div dir="ltr" align="left"><font color="#0000ff"
                  face="Arial"><a moz-do-not-send="true"
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"> </div>
              <div> </div>
              <div><span><font color="#0000ff" face="Arial">Arnd</font></span></div>
              <div><br>
              </div>
              <div dir="ltr" align="left" lang="de">
                <hr>
                <font face="Tahoma"><b>Von:</b> <a
                    moz-do-not-send="true"
                    href="mailto:openlayers-users-bounces@lists.osgeo.org"
                    target="_blank">openlayers-users-bounces@lists.osgeo.org</a>
                  [mailto:<a moz-do-not-send="true"
                    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 moz-do-not-send="true"
                    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 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
                          moz-do-not-send="true"
                          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
                                    moz-do-not-send="true"
                                    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
                                              moz-do-not-send="true"
                                              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
                                                        moz-do-not-send="true"
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
                                                          moz-do-not-send="true"
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 moz-do-not-send="true" href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a>
<a moz-do-not-send="true" 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></span></blockquote>
                                                        <span><font
                                                          color="#888888"><br>
                                                          <br>
                                                          <pre cols="72">-- 
Alexandre Dubé
Mapgears
<a moz-do-not-send="true" href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
                                                          </font></span></div>
                                                      <br>
_______________________________________________<br>
                                                      Users mailing list<br>
                                                      <a
                                                        moz-do-not-send="true"
href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
                                                      <a
                                                        moz-do-not-send="true"
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 moz-do-not-send="true"
                                              href="mailto:Users@lists.osgeo.org"
                                              target="_blank">Users@lists.osgeo.org</a><br>
                                            <a moz-do-not-send="true"
                                              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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre Dubé
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
  </body>
</html>