Cameron,
That's exactly what I did.
mapPaneOL is not listening to a "resize" event, in fact, there isn't any widget
listening to "resize". The closest event that mapPaneOL is listening to, would
be "refresh", so I explicitly added a call to
config.objects.mainMapWidget.model.callListeners("refresh"); However this
didn't resize the map, but *did* add an extra overviewmap to my webpage (?)
Can I assume that resizing the map at runtime is not possible?
Berend
--
Grontmij | GIS & ICT
De Holle Bilt 22, 3732 HM De Bilt
Postbus 203, 3730 AE De Bilt
Tel. +31-30-2207692 / +31-6-13271634
http://www.grontmij.com
> -----Original Message-----
> From: Cameron Shorter [mailto:[EMAIL PROTECTED]
> Sent: zondag 30 september 2007 22:26
> To: Veldkamp, Berend
> Cc: Steven M. Ottens; mapbuilder-users; Gertjan van Oosten
> Subject: Re: [Mapbuilder-users] Change map parameters at runtime
>
> Have a look in MapPaneOL and see what it listens for. Search
> for "addListener".
> If you want to check to see if the listener is called then
> attach a debugger and put a breakpoint in the function which
> is the listener.
>
> There is a web page describing how to do debugging on the
> http://communitymapbuilder.org website. (I'm writing this
> mail offline at thee moment and don't have the URL handy)
>
> Veldkamp, Berend wrote:
> > All,
> >
> > Thanks for your help so far. Unfortunately no results yet,
> but I do get a better understanding of MB.
> >
> > callListeners("resize"); is called from setWindowSize(),
> but it seems that no one is actually listening... Shouldn't
> MapPaneOL listen to that?
> > I then tried to call callListeners("refresh") on the
> mainMapWidget, I
> > can't really tell if something refreshes, but at least an extra
> > overview map is added after each call (?)
> >
> > Berend
> >
> >
> > --
> > Grontmij | GIS & ICT
> > De Holle Bilt 22, 3732 HM De Bilt
> > Postbus 203, 3730 AE De Bilt
> > Tel. +31-30-2207692 / +31-6-13271634
> > http://www.grontmij.com
> >
> >
> >
> >> -----Original Message-----
> >> From: Cameron Shorter [mailto:[EMAIL PROTECTED]
> >> Sent: vrijdag 21 september 2007 11:00
> >> To: Veldkamp, Berend
> >> Cc: Steven M. Ottens; mapbuilder-users; Gertjan van Oosten
> >> Subject: Re: [Mapbuilder-users] Change map parameters at runtime
> >>
> >> setWindowSize probably should trigger a modelChange event,
> but sounds
> >> like it doesn't.
> >> A workaround is to call
> >> model.callListeners(..)
> >>
> >> Search the code for an example of the exact syntax.
> >>
> >> Veldkamp, Berend wrote:
> >>
> >>> Hello again,
> >>>
> >>> Forgive my ignorance, but do I have to call some refresh function
> >>> after setWindowSize()? It doesn't seem to have any
> effect, although
> >>> getWindowSize does return the new windowsize.
> >>>
> >>> Thanks, Berend
> >>>
> >>>
> >>>
> >> --
> >> Cameron Shorter
> >> Systems Architect, http://lisasoft.com.au
> >> Tel: +61 (0)2 8570 5050
> >> Mob: +61 (0)419 142 254
> >>
> >>
> >>
> >>
> >
> > << Please read our E-mail Disclaimer at
> > http://emaildisclaimer.grontmij.com >>
> >
> >
> >
> > << Please read our E-mail Disclaimer at
> > http://emaildisclaimer.grontmij.com >>
> >
> >
>
>
> --
> Cameron Shorter
> Systems Architect, http://lisasoft.com.au
> Tel: +61 (0)2 8570 5050
> Mob: +61 (0)419 142 254
>
>
>
<< Please read our E-mail Disclaimer at http://emaildisclaimer.grontmij.com >>
<< Please read our E-mail Disclaimer at http://emaildisclaimer.grontmij.com >>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users