Draw a rectangle

P

Praveen

Hello,

I have a web page which will display the map of a
city/place. I have a toolbar which contains 'zoom in'
and 'zoom out' buttons. When the user clicks on zoom
in/zoom out button, he should be able to draw a rectangle
on any part of the map. The map will refresh automatically
with the zoom selections. Can any one help me on how to
draw the rectangle (without any predefined co-ords) and
capture the starting and ending points of the rectangle.
If you feel anything is unclear in this message, please
let me know. Any help would be appreciated.

Regards
Praveen
 
K

Kevin Spencer

First of all, this can't be done with HTML alone. Neither HTML nor
JavaScript have the ability to draw, and once the page reaches the client,
that's all there is to the page, HTML and JavaScript.

So, you're going to have to write an ActiveX control, Java Applet, SWF, or
embedded Windows Form to do the drawing on the client.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top