Hello Steven, Thanks for your reply.
The i18n example uses a parameter at the end of the url (i.e. "&language=nl"), I take it that this is the only way to change the language? I'd prefer some way to force widgets to reload their tooltips etc. Looking at the source, Config.js, this doesn't seem to be possible. I have no problem resizing the div, but it seems the mapimage itself remains the same size. Is is possible to change the size given in the map context document, i.e. the Window element? Or for that matter, any element in that document, preferable without reloading the entire page? Regards, 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: Steven M. Ottens [mailto:[EMAIL PROTECTED] > Sent: donderdag 20 september 2007 14:35 > To: Veldkamp, Berend > Cc: [email protected] > Subject: Re: [Mapbuilder-users] Change map parameters at runtime > > Hoi Berend, > > The language requires a reset of the application but this can > be doen in > runtime: if you take a look to the i18n example: > http://demo.communitymapbuilder.org/demo/mapbuilder/demo/i18n/ > index.html > you see different flags which are used to change the language. > To change the size of the map you have two options: you can > make the map-div-size relative to the browser window, if you > resize your browser window the map-div will resize > accordingly or you could try to set the width/height of the > DIV your self. > (document.getElementById('mapDivId').style.width="width") I > believe that should work, but I'm not sure. > > Steven > > Veldkamp, Berend wrote: > > > > This should be fairly simple: How do I change certain map > parameters > > at runtime, i.e. with JavaScript? For instance, how can I > change the > > size of the map, or the language (config.lang)? > > > > I already found out how to set the map extent > > (config.objects.mainMap.extent.zoomToBox(ul,lr)), but I can't find > > similar functions for other parameters. > > > > Regards, Berend > > << 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
