473,804 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5454
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_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1992
by: Kyler Laird | last post by:
I've been using Pyrex to get me through the Computer Vision class I'm taking this semester http://shay.ecn.purdue.edu/~ece661/ by dealing with the requirement that all programming assignments be submitted as C code. That's worked *very* well for me and I'm thankful that I don't have to deal with writing the assignments in C from scratch. (I am sure that it would degrade my understanding of the course material.) Now I've found another...
7
23026
by: lawrence | last post by:
In my style sheet I've set the links like this: a:link{ text-decoration:none; } I did that for the pseudo classes and I also did that for the image tag. Yet there are still link lines around the images. Why? It's on this page:
21
3081
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do it using DirectX. I downloaded already the DSK etc, but I can't find how I need to draw an image on a given position. I don't need stuff to write advanced 3D-games, just painting that image. Can anybody help me with this? I'm already looking for...
0
2782
by: Tomi Holger Engdahl | last post by:
I am looking for a solution to add on-line drawing tool to a phpBB discussion board. The idea would be that the users can draw their own simple drawings with the tool and attach them easily as images in the discussion. The idea is to easily add small drawings to the postings. The drawign tool should be easy to use and learn. It should be easily integrate to the phpBB system.
11
14899
by: srinivas | last post by:
Hi all, I have one requirement.Is there any way to create a line graph using javascript.If it is please send me the sample code.But the thing is it should work in all browsers. Thanks, Srinivas
10
10380
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover 100% of the image, and all I would need is a set of horizontal and vertical lines over the image to create a grid overlay Is there a way I can leverage some functionality in Javascript to do this? I can't use any server side 3rd party...
1
4351
by: zxo102 | last post by:
Hi everyone, I have tried two days to figure out how to draw the image in wx.BufferedDC on the page created by AddPage of wx.Notebook but still got no clue. The attached example works fine. If I click the menu "Draw" --"New Drawing". The image with wx.BufferedDC/wx.BufferedPaintDC can move around on the frame. But If I uncomment those three commented lines in "class TestFrame" to add a new page (from wx.Notebook) with a tag and modify...
5
9245
by: lgeastwood | last post by:
I have tweaked the PictureBox97.mdb (Stephen Lebans <www.lebans.com>) code to nicely draw lines, rectangles and circles to the specs that I input. I'm at a loss though with trying to setup an Ellipse Drawing Function. The following code I found on Google works in VB5 and draws an ellipse shape no problem using the Circle Method. Private Sub cmdDrawEllipse_Click() Dim X As Long, Y As Long Dim ElipseWidth As Integer, ElipseHeight As...
0
4234
by: dazzler | last post by:
I'm trying to draw line to an existing image, the problem is that the image doesn't update/refresh itself. In the example there's one button, but when pressing the button it changes the image but the image doesn't show up, and if I move other windows over my application window it will then refresh my application window and reveals the image. so what I'm trying to do is animating (moving) a line over existing image also, I don't want to...
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10599
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9173
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.