Hello Dharmendra,
this is really a question for Openlayers mailing list, but let me
quickly answer it for you:
To change Openlayers layer switcher control following things have to be made:
1) override default controls div color in you custom css file:
.olControlLayerSwitcher .layersDiv {
background-color: #aaaaaa!important;
}
2) when creating layer switcherControl, be sure to provide additional
parameter roundedCornerColor using same color as in your css file:
new OpenLayers.Control.LayerSwitcher ({ roundedCornerColor : '#aaaaaa' });
(same behavior can be achieved by modifying control parameter
OpenLayers.Control.LayerSwitcher.prototype.roundedCornerColor =
'#aaaaaa'; )
3) if you also want to change controls minimized button, you have to
replace layer-switcher-maximize.png image found in openlayers/img
directory.
Regards,
Ivan
On Wed, Mar 23, 2011 at 4:35 AM, Dharmendra Sonawane
<[email protected]> wrote:
>
> Hello List,
>
> I need to change the default blue color and the text color as shown the
> Layer control.
>
>
> Please help me!
>
> Regards,
> Dharmendra
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
-------------------------------------------------------
Ivan Grcic
GeoSolutions S.A.S.
Software Engineer
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 328 0559267
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://twitter.com/geosolutions_it
http://www.youtube.com/user/GeoSolutionsIT
-------------------------------------------------------
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users