Hey Tom,

It's quite easy:
When creating a layer switch, give the option:
roundedCornerColor: "#ff0000"

to make the layerswitch red. :)

Roy
  _____  

From: Tom Chance [mailto:[email protected]]
To: Moataz Elmasry [mailto:[email protected]]
Cc: [email protected]
Sent: Tue, 11 Jan 2011 15:04:28 +0100
Subject: Re: [OpenLayers-Users] Styling the layerswitcher

No it isn't, it's a bundle of divs with CSS attributes apparently hardcoded in.

>From what I can see, overriding all ".OlControlLayerSwitcher span" elements 
>and the ".layersDiv" element would at least enable somebody to override the 
>colour and some other basic attributes, but you're stuck with the basic layout 
>unless you roll your own replacement.
  
Tom


On 11 January 2011 13:53, Moataz Elmasry <[email protected]> wrote:
                      
      Its just a png(s), so replace it with your own png



      
      On 01/11/2011 02:49 PM, Tom Chance wrote:      


Hello,
        
        Has anyone seen an example of a stylesheet for the layerswitcher        
control?
        
        It looks like a real pain to customise, I've seen a few sites who       
 have made their own theme for the various buttons but the        layerswitcher 
is still blue.
        
        All I really want to do is change it to a particular shade of        
green!
        
        Regards,
        Tom
        
        
        -- 
        http://tom.acrewoods.net          http://twitter.com/tom_chance
        

  _______________________________________________  Users mailing list  
[email protected]  http://lists.osgeo.org/mailman/listinfo/openlayers-users 
             
        
_______________________________________________
  Users mailing list
  [email protected]
  http://lists.osgeo.org/mailman/listinfo/openlayers-users
  



-- 
http://tom.acrewoods.net   http://twitter.com/tom_chance
    
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to