Hi Andreas
I have got the center point using .getTotalLength() and getPointAtLength().
I also have center point coordinates. Thank you very much. Its work well.
But now my doubt is how I can I animate using <animateMotion/> to place the
symbol or an element in center poitn co-ordinates.
Raghu
Andreas Neumann <[EMAIL PROTECTED]> wrote:
You could use <animateMotion /> to "animate" your symbol to 50% (using
discreet values) and set fill "freeze" to make the symbol stay there.
The advantage of this approach is that the symbol can be rotated
automatically.
See http://www.w3.org/TR/SVG11/animate.html#AnimateMotionElement or
http://www.carto.net/papers/svg/samples/path_animation.shtml
The other alternative would be to use javascript. The methods
.getTotalLength() and .getPointAtLength() help you to find the
position at 50% of the path. The tricky part is to find the
orientation: for finding that you would have to read the path geometry
itself ...
As Philippe said, there is no easy solution for that.
Andreas
--- In [email protected], raghu raman <[EMAIL PROTECTED]>
wrote:
> I need to draw a arrow head in middle of the given path.
> <path d="M 212747656,-190398966 L 212721062,-190451692 L
212437743,-190301694 L 212430133,-190282952 L 212258060,-190192589"/>
> Kindly let me know your solutions
>
>
>
> Raghu
>
>
>
> Yahoo! India Matrimony: Find your life partneronline.
>
> [Non-text portions of this message have been removed]
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Sponsor
Get unlimited calls to
U.S./Canada
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! India Matrimony: Find your life partneronline.
[Non-text portions of this message have been removed]
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/