[OpenLayers-Users] overviewmap style properties
Alessio Di Lorenzo
alessio.dilorenzo at gmail.com
Mon May 19 09:37:16 EDT 2008
Yes... I solved right now with a google search... using !important as
you says
I'm quite new to these "css tricks"... :-) (and I hate IE, again)
thx to all, alessio
Lance Dyas ha scritto:
> Did you try using the css
> padding 0px important!;
> background:none important!;
>
> ?
> Alessio Di Lorenzo wrote:
>> I'm doing some experiments.
>>
>> Defining the .olControlOverviewMapExtentRectangle class in my css it
>> works well, applying the new style both in FF and IE.
>>
>> It seems like my .olControlOverviewMapElement class can't overwrite
>> the correspondent class in the default style.css if using IE (I hate
>> IE...)
>>
>>
>>
>>
>> Alessio Di Lorenzo ha scritto:
>>
>>> Hi and thanks for your answer Christian.
>>> Your suggestion works well in Firefox :-)
>>> ...but not with IE.
>>> I added this css definition to my custom stylesheet:
>>>
>>> .olControlOverviewMapElement{
>>> -moz-border-radius-bottomleft: 0pt;
>>> -moz-border-radius-bottomright: 0pt;
>>> -moz-border-radius-topright: 0pt;
>>> -moz-border-radius-topleft: 0em;
>>> background:none;
>>> padding: 0px; }
>>>
>>> on IE6 and IE7 the blue background and the padding values remains
>>> active.
>>> maybe you understand what's wrong?
>>>
>>> alessio
>>>
>>>
>>>
>>>
>>> Christian López Espínola ha scritto:
>>>
>>>> Just create a new css and link it in your page, or put a style section
>>>> in your page's head after the inclusion of the OL css..
>>>> There you override the styles that you want to change.
>>>>
>>>> HTH
>>>>
>>>> On Sun, May 18, 2008 at 6:10 PM, Alessio Di Lorenzo
>>>> <alessio.dilorenzo at gmail.com> wrote:
>>>>
>>>>
>>>>> Hi list,
>>>>>
>>>>> I'm working on the overview map outside the map viewport and
>>>>> everything
>>>>> is going fine but I don't uderstand if it is possible to restyle the
>>>>> overview map (by deleting, for example, the blue border) without
>>>>> working
>>>>> directly on the style.css file.
>>>>>
>>>>> I read the online docs concerning the minRectDisplayClass
>>>>> http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Control/OverviewMap-js.html#OpenLayers.Control.OverviewMap.OpenLayers.Control.OverviewMap
>>>>>
>>>>>
>>>>> but I don't understand exactly how to use it and if this class is
>>>>> suitable to reach my purpouse... that is to manage the overview
>>>>> map style.
>>>>>
>>>>> Could you give me some hints?
>>>>>
>>>>> thx in advance, alessio
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at openlayers.org
>>>>> http://openlayers.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>
>
More information about the Users
mailing list