[OpenLayers-Users] LayerSwitcher format - "default" vs "Gallery Example"

Christopher Schmidt crschmidt at metacarta.com
Thu May 22 02:23:02 EDT 2008


On Wed, May 21, 2008 at 07:55:23PM -0600, Greg Cocks wrote:
> Hi,
> 
>  
> 
> Along with it being maximised on the page when opened, I liked the
> format of the LayerSwitcher on the "gallery example" at
> http://www.openlayers.org/gallery/multiple.html - that is, the left
> justify and the various layers being indented under 'Base Layer' and
> 'Overlays.'
> 
>  
> 
> However my 'out of the box' LayerSwitcher has centered lines, no
> indents, and often the layer names I specify are truncated at the edge
> of the box on the right.

I expect you probably have more complex CSS in your page. Remove it all,
then figure out where you're setting text-align or what have you, and go back and figure out how to fix it :)

-- Chris




More information about the Users mailing list