[OpenLayers-Dev] LayerSwitcher strange behaviour when mixing google layers and others
Bart van den Eijnden
bartvde at boundlessgeo.com
Mon Apr 28 09:29:52 PDT 2014
Something is interfering with the CSS, you can probably figure it out by using the browser’s development tools and inspecting the layer switcher’s dom elements.
As a workaround, you can also just add a fixed font size for the whole div eg:
.olControlLayerSwitcher {
font-size: 10px;
}
Best regards,
Bart
--
Bart van den Eijnden
Front-end Developer | Boundless
@boundlessgeo
On 28 Apr 2014, at 18:17, Arnaud Vandecasteele <arnaud.sig at gmail.com> wrote:
> Hey guys,
>
> Any chance to have a hint on this problem ?
> I would like to keep OL 13.1 but if the problem remains, I will have to switch for a previous version.
>
> Thanks
>
> A.
>
>
> On Wed, Apr 16, 2014 at 10:06 PM, Arnaud Vandecasteele <arnaud.sig at gmail.com> wrote:
> Hello,
>
> I've noticed a strange behaviour for the LayerSwitcher since I move in 13.1.
> If I mix in the same time some layers from Google and others providers (let say OSM), the size of layerswitcher and the font size of the label change when clicking on the Google maps layers and the others.
> For example if I only select OSM, the layerswitcher is bigger than if I have one of the Gmaps layers (tested on Ubuntu with Chrome and Firefox).
> In the beginning, I thought it was a problem with my code but I can reproduce the same behaviour using some of the examples in the OL directory.
> ex : google-v3-overlays.js
>
> Just add :
> var osm = new OpenLayers.Layer.OSM(
> "OpenStreetMap",null,{
> visibility: false
> }
> )
> map.addLayers([gsat, gphy, gmap, ghyb, osm]);
>
> Do you know what could cause that?
>
> Thanks
>
> Arnaud
>
>
>
> --
> --------------------------------------------------------------------
> Arnaud Vandecasteele
> SIG - WebMapping - Spatial Ontology - GeoCollaboration
>
> Web Site
> http://www.marinegis.com/?page_id=131
> http://geotribu.net/
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20140428/47f84fe5/attachment.html>
More information about the Dev
mailing list