[OpenLayers-Users] how to "set up the labels and divs for the control" ?

kaka drspencer at hotmail.com
Fri Jul 6 12:48:27 EDT 2007


You can find quite a few examples over at
http://www.openlayers.org/dev/examples/ .

Magnus



skotea wrote:
> 
> <second try>
> hi people,
> 
> using OpenLayers.Control.LayerSwitcher...
> 
> please, can someone give me a quick example how maximizeControl function
> and
> maximizeDiv property work ?
> 
> I wanna write something like this. is it possible ?
> 
> // first example
> map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false,
> 'maximizeDiv':something1}));
> 
> // and second one please
> var ls =  new OpenLayers.Control.LayerSwitcher();
> ls.maximizeControl(something2);
> 
> what is needed to replace "something1" and "something2" and set the label
> (title ?) and divs (minimized / maximized, ...) in the upper code ?
> 
> TIA
> skotea (newbie)
> 
> PS : where can I find online examples and tutorials about openlayers ?
> 
> On 7/6/07, users-owner at openlayers.org <users-owner at openlayers.org> wrote:
>>
>> You are not allowed to post to this mailing list, and your message has
>> been automatically rejected.  If you think that your messages are
>> being rejected in error, contact the mailing list owner at
>> users-owner at openlayers.org.
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: skotea <skotea at gmail.com>
>> To: users at openlayers.org
>> Date: Fri, 6 Jul 2007 08:14:05 -0700 (PDT)
>> Subject: how to "set up the labels and divs for the control" ?
>>
>> hi people,
>>
>> using OpenLayers.Control.LayerSwitcher...
>>
>> please, can someone give me a quick example how maximizeControl function
>> and
>> maximizeDiv property work ?
>>
>> I wanna write something like this. is it possible ?
>>
>> // first example
>> map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false,
>> 'maximizeDiv':something1}));
>>
>> // and second one please
>> var ls =  new OpenLayers.Control.LayerSwitcher();
>> ls.maximizeControl(something2);
>>
>> what is needed to replace "something1" and "something2" and set the label
>> (title ?) and divs (minimized / maximized, ...) in the upper code ?
>>
>> TIA
>> skotea (newbie)
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-%22set-up-the-labels-and-divs-for-the-control%22---tf4036245.html#a11466628
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>>
>>
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-%22set-up-the-labels-and-divs-for-the-control%22---tf4036245.html#a11468776
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list