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.