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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to