[OpenLayers-Users] buggy loadingPanel (vs
Navigation/MouseDefaults) please help!
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Tue Dec 23 09:35:49 EST 2008
Hi,
for me it works in the loadingpanel example:
http://dev.openlayers.org/addins/loadingPanel/trunk/examples/loadingpanel.html
It could have to do with the sequence in which you add the controls,
take a good look at the example.
Best regards,
Bart
BrainDrain wrote:
> I've found that loadingPanel addon doesn't work properly
> When I add some controls (including new OpenLayers.Control.LoadingPanel() &
> new OpenLayers.Control.Navigation({ zoomWheelEnabled: true }) in my map (I'm
> using tiled mapserver layer)
> and when tiles loading - mouse wheel doesn't change zoom level in my map
> mouse wheel become working only after loading ends
> BUT with MouseDefaults control all works perfectly!
> After some digging I can see that problem in onWheelEvent (MouseWheel
> handler):
> var elem = OpenLayers.Event.element(e) - eveluates to {... ,
> className="olControlLoadingPanel olControlNoSelect", ...}
> and then overLayerDiv evaluates to false - so
> this.wheelZoom(e) - is not called at all during loadingPanel is active
> (maximized)
> What is the best way to fix that?
>
>
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl
More information about the Users
mailing list