469,621 Members | 2,244 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Draw a rectangle

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
Nov 19 '05 #1
1 2398
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.

"Praveen" <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
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

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by B-Dog | last post: by
10 posts views Thread by kimiraikkonen | last post: by
reply views Thread by joshguru | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.