[Users] Ext.Window.DD problem

Brad Spencer brad at numaps.com.au
Wed May 30 08:35:26 CEST 2012


List,

 

I have built a EXT 3.3.1 + geoExt +Openlayers app that builds a floating
window as a magnifier window. I have been able to make it work over any
number of layers such that when the user drags the window around the map and
stops the magnifier map refreshes over that part of the map. The user can
adjust the magnifier window's zoom level independent of the map hence you
have a magnifier that refreshes from the remote resources.

 

That works just fine and dandy but I have also set up a onDrag event on the
window which tracks all the locations of the window while dragging so now I
want to refresh the magnifier window while tracking. But the standard
behaviour of a floating Ext.Window is that you don't appear to be able to do
anything with that window while dragging. It just turns the window
transparent until you stop dragging.

 

Can anyone tell me how to force the window to refresh while dragging? See
the code I use to track the widow here.

 

// setup the onDrag event on the magnifierMap window

magMap.magnifyWindow.dd.onDrag = function(e)

{              

// set up a mouse tracking event              

                this.alignElWithMouse(this.proxy, e.getPageX(),
e.getPageY());

                magMap.topLeftX = this.lastPageX - magMap.mainmapX;

                magMap.topLeftY = this.lastPageY - magMap.mainmapY;

                                

                // echo out the window top left screen coords while dragging
(debug)

                if(document.getElementById('debug'))
{document.getElementById('debug').value = magMap.topLeftX+',
'+magMap.topLeftY;}

                                

                // shift magnify map over where the window has been dragged

                alignMagnifier();

}

 

Cheers, Brad...

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120530/6618c271/attachment-0001.htm 


More information about the Users mailing list