From: GeoUser <bla...@ma...> - 2008-01-23 07:52:38
|
I'm not trying to reize the map window when explorers window changes in size. I have a selection box with different map sizes on my webpage form and when i select the size i want the map window to change accordingly. And about the loading: in my config file i have: > <Loading2 id="loading2"> > <targetContext>mainMap</targetContext> > </Loading2> > And when i do series of actions, as seen few posts above, this loading bar/image/widget doesn't dissapear. It keeps saying "Loading 1(2) layers" untill i refresh the page. It keeps saying loading even if all layers have been loaded since i can see alll of them. My buffer is set to 0. Steven Ottens wrote: > > Hi, > > You don't need to calculate the new width and height. If you just set > the MainMapPane DIV to a relative size which scales with the browser > window the 1.5 release of Mapbuilder will resize the mainMapPane and > the Map automatically. > The problem of the loading bar is most likely that it's not listening > to the OpenLayer events. But I'm no expert in that area and your > details are a bit sketchy to say for sure. > > Steven > > > On Jan 22, 2008, at 2:45 PM, GeoUser wrote: > >> >> One more problem. Maybe i'm trying to use it in wrong way but >> here's what i >> do: >> >> >> >>> config.objects.mainMap.setWindowWidth(newWidth); >>> config.objects.mainMap.setWindowHeight(newHeight); >>> config.objects.mainMap.callListeners("refresh"); >>> config.objects.reset.select(); >>> >> >> I calculate new width and height for mainMap (so i can dynamically >> resize >> map window). Then i call refresh to make the change. Now i reset >> the view. >> Everything happens as it should except the "loading bar" keeps >> saying there >> are 1 or 2 layers to be loaded. And it doesn't go away untill i >> refresh the >> page. Are my actions incorrect? >> -- >> View this message in context: http://www.nabble.com/Mapbuilder-and- >> tiling-support-tp14149098p15019009.html >> Sent from the MapBuilder Devel mailing list archive at Nabble.com. >> >> >> ---------------------------------------------------------------------- >> --- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> mapbuilder-devel mailing list >> map...@li... >> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > mapbuilder-devel mailing list > map...@li... > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > -- View this message in context: http://www.nabble.com/Mapbuilder-and-tiling-support-tp14149098p15036517.html Sent from the MapBuilder Devel mailing list archive at Nabble.com. |