Thank you for your quick response! I'm a few steps further already: I grouped all line- and polygon-layers together. Setting the background like this now works: LAYERS: 'Europe', STYLES: '', format: format, bgcolor: '0x001d54', transparent: false
This results in a full dark blue background. All areas of the map, that are not line or polyon are dark blue now. BUT this just takes me to the next step of the problem. I want to distinguish between land and ocean/sea. The land-areas are somewhat defined by the coastline-layer. But I'm afraid, I will not manage to define a specific color for the area 'inside" the coastline, will I? If I specify a layer only containing the coastline and set the bgcolor for that layer, the whole world is colored as well, not just the area 'inside' the coastlines. Do you see any other chance to just distinguish land-masses from water like the North Sea? Or do you now any source of high-res-mapdata usable with geoserver? shapefile preferred...?! Many thanks in advance, Andreas 2012/9/6 Andreas Hocevar <[email protected]> > I am not sure if the BGCOLOR parameter works for GeoServer group > layers. Also make sure that the WMS requests don't have a > TRANSPARENT=true parameter. If they do, add 'transparent: false' to > your WMS params. > > Andreas. > > On Thu, Sep 6, 2012 at 10:04 AM, Andreas Schnieders > <[email protected]> wrote: > > Hi, > > > > I have one WMS-BaseLayer specifying a 'worldwide' dark-blue background. > > bgcolor '0xXYZXYZ' works fine there. > > > > I as well have three other WMS-Layers with isBaseLayer: false. These are > > geoserver LayerGroups, consisting each of one line-layer and one > > polygon-layer. But bgcolor: '0xsomething' doesn't have any effect in > there. > > > > What am I doing wrong? Shouldn't it be possible to specify the background > > color so the whole area of the line-polygon-layer not being covered by > any > > lines or polygons would have the specified color? > > > > Would appreciate any hint! > > > > Kind regards, > > Andreas > > > > _______________________________________________ > > Users mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
