Taco:

I work on GIS apps as well (ESRI's ArcIMS).  I have used DynAPI for several
different GIS applications basically because ESRI threw together some nasty
looking javascript to get their dhtml to do rubberbanding and moving.  I
would show you my current application but I'm not able to put my development
box outside the firewall. So I have put a basic example of a zoom box up on
the main server.

http://www.dubseestudios.com/dynapi/myexamples/dynapi.gui.draggablebox.html

If you have an questions about it let me know.

Hope this helps.

Chris




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ditiecher, T.
Sent: Monday, November 12, 2001 7:11 AM
To: '[EMAIL PROTECTED]'
Subject: [Dynapi-Help] Interactive drawing of a rectangle.


I am working on a GIS client that shows a geographical map. It is possible
to select an area on the map to  zoom in to. It should work as follows: the
user clicks (and holds) the left mouse button, when the user moves the mouse
it should show a resizing rectangle of the selected area. When the user
releases the mouse button a function should be called to zoom into the
selected region.

Probably the solution should be something like onMousedown create new
transparant Selection Layer (with four border layers in another color),
onMouseMove resize the Selection Layer and onMouseUp finish selection and
call zoomin function. When I look at the example that comes with DynAPI
2.5.6 (dynapi.event.mouseevents.htm) I see that the mousedown and mousemove
events work, but when I release the button now event is caught.

Can somebody help me with some sample code to realize this?

Thank you in advance.

With kind regards,
Taco Ditiecher.


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to