[Cartoweb-dev] Size of map

Yves Jacolin yjacolin at free.fr
Wed Feb 14 09:00:51 EST 2007


Hi,

You mean a dynamic size of the map ? 

If so, you can write a plugin to extend the image plugin (don't know the exact 
name of the plugin which manage this, is it the Location Plugin ?). And 
retrieve the size of the windows by javascript, send it to the plugin to 
manage the cartoweb mapsize parameter.

Y.
Le Mercredi 14 Février 2007 14:46, Sylvain Beorchia a écrit :
> Hi Yves,
>
> yes, i've done that. But i'd like to be able to add some choices while
> CW is running, or apply a size while CW is running. I want to make the
> MAP fitting the browser dimensions.
>
> See what i mean ?
>
> Thanks.
>
> Sylvain B.
> Makina Corpus
>
> Yves Jacolin a écrit :
> > Hello Sylvain,
> >
> > Juste create a image.ini in your client_conf/ with this kind of
> > parameter/value :
> > mapSizesDefault = 1
> >
> > mapSizes.0.label = small
> > mapSizes.0.width = 230
> > mapSizes.0.height = 169
> >
> > mapSizes.1.label = normal
> > mapSizes.1.width = 400
> > mapSizes.1.height = 300
> >
> > mapSizes.2.label = big
> > mapSizes.2.width = 800
> > mapSizes.2.height = 600
> >
> > More information here (in French) :
> > http://cartoweb-community.gloobe.org/doku.php?id=fr:documentation:doc_off
> >iciel:version3.2#options_des_formats_d_image
> >
> > Y.
> >
> > Le Mercredi 14 Février 2007 14:24, Sylvain Beorchia a écrit :
> >> Hi,
> >>
> >> Is there a way in CW3 to change the size of map dynamicaly ?
> >> I've tried to add with javascript some choices in the MapSize list, and
> >> then choose the new choice, but it does not work, 'cause CW uses the INI
> >> file to pick up the sizes...i guess.
> >>
> >> Any help ?
> >>
> >> Thanks
> >>
> >> Sylvain Beorchia
> >> Makina Corpus
> >> _______________________________________________
> >> Cartoweb-dev mailing list
> >> Cartoweb-dev at lists.maptools.org
> >> http://lists.maptools.org/mailman/listinfo/cartoweb-dev

-- 
Yves Jacolin
---
http://yjacolin.gloobe.org



More information about the Cartoweb-dev mailing list