[OpenLayers-Users] changing fonts in the layerswitcher

P Kishor punk.kish at gmail.com
Thu Sep 10 23:56:31 EDT 2009


is there a way to change the fonts in the layerswitcher control short
of fiddling with the hard coded styles in LayerSwitcher.js
loadContents method?

    loadContents: function() {

        //configure main div
        this.div.style.position = "absolute";
        this.div.style.top = "25px";
        this.div.style.right = "0px";
        this.div.style.left = "";
        this.div.style.fontFamily = "sans-serif";
        this.div.style.fontWeight = "bold";
        this.div.style.marginTop = "3px";
        this.div.style.marginLeft = "3px";
        this.div.style.marginBottom = "3px";
        this.div.style.fontSize = "smaller";
        this.div.style.color = "white";
        this.div.style.backgroundColor = "transparent";





-- 
Puneet Kishor



More information about the Users mailing list