[OpenLayers-Users] Display an Icon on a Vector layer

Xavier Mamano (jorix) xavier.mamano at gmail.com
Thu Mar 14 12:35:00 PDT 2013


Hi,

It would be desirable to experiment with different types of layers, looking
for side effects. This is a risky sport ;-)

If I were you I would not be calm until test it with different browsers.

Regards,

Xavier Mamano



Jaume Figueras wrote
> Hi, I reply to myself. From a CSS expert the solution to this problem is 
> to add:
> 
> body div.olLayerDiv {
>      width: auto !important;
> }
> 
> to your CSS.
> 
> Jaume.
> 
> 
> On 14/03/13 14:03, Jaume Figueras i Jové wrote:
>> Hello,
>>
>> I like to display a custom icon in a Vector layer. Now it's done, but
>> its not displaying properly. The Vector layer is in a 
> <div>
>  with
>> class="olLayerDiv" but adds inline a style="position: absolute; left:
>> 0px; top: 0px; z-index: 725; height: 100%; width: 100%". The effect of
>> this style is that the icon is not displayed, but if I remove the width
>> element with firebug the icon is properly displayed. The width and heigh
>> elements conflicts with my web styles somewhow I can't figure out.
>>
>> Is there any way I can remove the width style that is places inline?
>>
>> Thanks.
> 
> -- 
>         Jaume Figueras i Jové
> o o o  Responsable de projectes SIG
> o o o  inLab FIB
> o o o
> U P C  Universitat Politècnica de Catalunya - Barcelona Tech
> 
>         E-mail : 

> jaume.figueras@

>         Web    : http://inlab.fib.upc.edu/
>         Telf   : +34937398621 (intern UPC: 98621)
>         Mòbil  : +34650756456 (intern UPC: 44785)
>         Fax    : +34937398628 (intern UPC: 98628)
> 
>         Adreça : inLab FIB
>                  Edifici B5-S102
>                  C/ Jordi Girona, 31
>                  08025 BARCELONA
> 
> Ubuntu User #14347 - Linux User #504317
> _______________________________________________
> Users mailing list

> Users at .osgeo

> http://lists.osgeo.org/mailman/listinfo/openlayers-users





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Display-an-Icon-on-a-Vector-layer-tp5040390p5040466.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list