Walter Zorn (don't have the web link handy, but it will be the top of a web search) is the library that many folks have used for things like ruler tools.<br><br><div><span class="gmail_quote">On 9/15/06, <b class="gmail_sendername">
Stephen Woodbridge</b> <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ramesh karra wrote:<br>> Thank you very much for the quick response stephen! I<br>> will look into the archives.<br>><br>> I have a quick question -<br>><br>> What is the most efficient way to do this if the
<br>> number of points is small (say < 30).<br><br>I think some people have mentioned doing it in javascript. I forget<br>which library, but one of them has some basic line drawing capabilities.<br>I think you will find it in the archives, or someone else might respond
<br>to this thread.<br><br>-Steve<br><br>> Thanks<br>> Ramesh<br>><br>><br>> --- Stephen Woodbridge <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>><br>> wrote:<br>><br>>> ramesh karra wrote:
<br>>>> Hi,<br>>>><br>>>> Currently, I can successfully display a map<br>>> generated<br>>>> from a map file using mapserver and kaMap.<br>>>><br>>>> I would like to know what is the best way to draw
<br>>> a<br>>>> dynamic line(or route) as a layer on top of this<br>>> map<br>>>> given that the data I have is a sequence of points<br>>>> represented by lattitude and longitude (and not in
<br>>>> some shape file or postgres db)<br>>> Ramesh,<br>>><br>>> There has been a lot of discussion on this, you<br>>> might want to search the<br>>> archives. To summarize, there is no good way to do
<br>>> this on the client<br>>> yet. You can do it for a few line segments, but<br>>> performance rapidly<br>>> degrades to unacceptable as you start pushing over<br>>> about 50 points.<br>>>
<br>>> I think what a lot of people, well those that have<br>>> actually implemented<br>>> something are doing it server side. The scenario is<br>>> as follows:<br>>><br>>> 1) put your points into a session storage
<br>>> 2) modify the client to request a route image on<br>>> viewport extents change<br>>> 3) have a php, or cgi script read the session data<br>>> and the viewport<br>>> extents and scale and generate an image that is
<br>>> returned to the client<br>>> 4) have the client pin the image to the viewport.<br>>><br>>> This is basically the way that google is doing it.<br>>> You can get a little<br>>> bit smarter on the client to not make requests when
<br>>> the view port<br>>> extents change if you don't need to redraw the<br>>> image.<br>>><br>>> -Steve W.<br>>><br>><br>><br>> __________________________________________________
<br>> Do You Yahoo!?<br>> Tired of spam? Yahoo! Mail has the best spam protection around<br>> <a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br><br>_______________________________________________<br>ka-Map-users mailing list
<br><a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>************************************<br>David William Bitner