[OpenLayers-Users] .olControlAttribution css problem
Charles Galpin
cgalpin at lhsw.com
Mon Dec 19 08:24:19 EST 2011
I am not sure if your problem is the same, but I recently ran into a problem where my style changes were being overriden by those from the default style even though my style declarations came after loading the defaults. After some googling I found that you need to add "theme: null" to the map options to stop openlayers loading the default style.css at runtime (which overrides your styles). It doesn't do it in all cases, but I am unsure what triggers the runtime load, but do know setting the theme to null takes care of it for me.
hth
charles
On Dec 19, 2011, at 8:13 AM, Pierre Muckensturm wrote:
> Hi,
> I've noticed a problem with the Licence mention on my map :
> [url=http://tof.canardpc.com/view/d128c85b-ac18-408e-8cf3-51ccb179aade.jpg][img]http://tof.canardpc.com/preview2/d128c85b-ac18-408e-8cf3-51ccb179aade.jpg[/img][/url]
> The mention is in the middle of my map. With Firebug, I change the
> css, and then I tried to change my code, like this :
> [code]<style>
>
> .olControlAttribution {
> bottom: 0.5em;
> display: block;
> font-size: smaller;
> right: 3px;
> }
> </style>[/code]
> It does'nt work. It can't work because of the
> "openlayers/theme/default/style.css" (or it seems to be the cause).
> Does anyone got the same behaviour ? Is there any solution ?
>
> Thanks in advance, you'd help me
> --
> PLM aka Brindavoine
More information about the Users
mailing list