Peter,
As far as I know all the styling for the layerswitcher is hardcoded into the
javascript, so you can't control it from style.css
you can add this to your javascript:
map.addControl(new
OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')}));
Then you have named the layerswitcher parent div. From there you can hack the
styles with javascript.
Better yet,
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
modify the layer switcher so the style attributes are exposed to the style.css
file.. I'm sure many people would find that useful.
jay
----- Original Message -----
From: "Peter Dawn" <[email protected]>
To: [email protected]
Sent: Wednesday, May 27, 2009 11:45:57 PM GMT -08:00 US/Canada Pacific
Subject: [OpenLayers-Users] Customize layer switcher look and feel
hi everyone,
i would like to customize the layer switcher look and feel. i mean
change background and font etc. which file should i edit. i've tried
to use firebug to find the exact place, but am unable to find which
file. it isn't theme\style.css
can somebody tell me which file i should edit.
thanks.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users