[Cartoweb-dev] Size of map
Pierre GIRAUD
pierre.giraud at camptocamp.com
Wed Feb 14 09:13:12 EST 2007
Hello Sylvain,
If you're running the CVS version, you should have a try with the new
_REQUEST parameter "customMapsize".
// customMapsize parameter is something like [width]x[height]
// with [width] and [height] being integers.
To use that, you might want to have a new hidden input in the cartoweb
form which name is "customMapsize" and set its value with the size of
the map container using javascript.
HTH
Regards
Pierre GIRAUD
Sylvain Beorchia wrote:
> 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_officiel: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
>>>
>
> _______________________________________________
> Cartoweb-dev mailing list
> Cartoweb-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-dev
>
More information about the Cartoweb-dev
mailing list