DrawingLine in map mousemove event

Topics: SharpMap Project, SharpMap v0.9 / v1.x, SharpMap v2.0
Dec 2, 2008 at 11:33 AM
i want to draw line in map mousemove event in ASP.NET
i able to pick the mouse move points but which function i need to use
we cant create the layer and add to the map dynamically.
Coordinator
Dec 2, 2008 at 12:07 PM
You will not be able to draw a linestring in mousemove using sharpmap in an asp.net page - it will not be fast enough as you would need to redraw the whole image for every pixel moved on the screen.
You will have to use svg or vml to draw an overlay to achieve this - but you would be better off using OpenLayers as the 'control' and SharpMap as a wms server
hth jd
Dec 3, 2008 at 11:57 AM
Edited Dec 3, 2008 at 12:00 PM
thanks for u r reply.
i am newly using this sharpmap. if u have any  code to draw line without uaing openlayer
is i need to to redraw the image in mouse mouse event using graphics
please send me.
Coordinator
Dec 3, 2008 at 12:26 PM
Hi vittal , I don't have any code that I can share and it is a non trivial task, different browsers support different rendering engines and you will likely need to cope with both. Redrawing on the server will not be fast enough..