469,946 Members | 1,805 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

tool to draw lines/curves on a image in the webpage

Hello Friends,

I am working on a web application in which I have a map loaded on the
page and I am required to dynamically draw points, lines, curves on
the map to show a location, road etc.

Kindly tell me if these is a javascript/ajax library/tool to perform
such actions.
Thanks in advance.

Regards,
Sagar Arlekar
Nov 16 '07 #1
4 5234
sagar wrote:
Hello Friends,

I am working on a web application in which I have a map loaded on the
page and I am required to dynamically draw points, lines, curves on
the map to show a location, road etc.

Kindly tell me if these is a javascript/ajax library/tool to perform
such actions.
Thanks in advance.

Regards,
Sagar Arlekar
Hi Sagar,

If you need anything more than a few images floating over you map, you
are in trouble.
JavaScript is NOT a full fledged image-editing/rendering tool.

However, something like that is possible.
I wrote one for fun, and found a few other on the net.
They use small absolute positioned divs to mimic a pixel, but that
really sucks (speed/memory wise), and is bound to fail on any low-end
computer.
And if you draw enough 'pixels' it is bound to fail on any computer. ;-)

I would advise you to boil the functionality needed down to a few simple
forms, eg set a beginpoint and endpoint on your map with a nice
crosshair or something like that.
You can use an image to show these points.

For any futher serious drawing you'll have to go serverside.

Regards,
Erwin Moller
Nov 16 '07 #2
On Nov 16, 8:02 pm, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
sagar wrote:
Hello Friends,
I am working on a web application in which I have a map loaded on the
page and I am required to dynamically draw points, lines, curves on
the map to show a location, road etc.
Kindly tell me if these is a javascript/ajax library/tool to perform
such actions.
Thanks in advance.
Regards,
Sagar Arlekar

Hi Sagar,

If you need anything more than a few images floating over you map, you
are in trouble.
JavaScript is NOT a full fledged image-editing/rendering tool.

However, something like that is possible.
I wrote one for fun, and found a few other on the net.
They use small absolute positioned divs to mimic a pixel, but that
really sucks (speed/memory wise), and is bound to fail on any low-end
computer.
And if you draw enough 'pixels' it is bound to fail on any computer. ;-)

I would advise you to boil the functionality needed down to a few simple
forms, eg set a beginpoint and endpoint on your map with a nice
crosshair or something like that.
You can use an image to show these points.

For any futher serious drawing you'll have to go serverside.

Regards,
Erwin Moller

Thanks Erwin.
Nov 17 '07 #3
sagar wrote:
Hello Friends,

I am working on a web application in which I have a map loaded on the
page and I am required to dynamically draw points, lines, curves on
the map to show a location, road etc.

Kindly tell me if these is a javascript/ajax library/tool to perform
such actions.
Thanks in advance.

Regards,
Sagar Arlekar
I've successfully used VML and also jsGraphics from
<url: http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm >

Andrew Poulos
Nov 17 '07 #4
pr
sagar wrote:
I am working on a web application in which I have a map loaded on the
page and I am required to dynamically draw points, lines, curves on
the map to show a location, road etc.

Kindly tell me if these is a javascript/ajax library/tool to perform
such actions.
There is HTML Canvas

http://developer.mozilla.org/en/docs/Canvas_tutorial

or SVG

http://developer.mozilla.org/en/docs/SVG
Nov 17 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Kyler Laird | last post: by
21 posts views Thread by DraguVaso | last post: by
reply views Thread by Tomi Holger Engdahl | last post: by
11 posts views Thread by srinivas | last post: by
10 posts views Thread by kaczmar2 | last post: by
5 posts views Thread by lgeastwood | last post: by
reply views Thread by dazzler | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.