[OpenLayers-Users] bgcolor for WMS not working

Andreas Schnieders schnieders.a at gmail.com
Thu Sep 6 03:43:07 PDT 2012


Thanks for the hint!

Please have a look at: https://dl.dropbox.com/u/553850/LevelsOfDetail.png
The black line between the grey and the blue area is the level of detail
Natural Earth provides for the borders between land and ocean - at least
for what I found in their download area. The blue lines show the level of
detail I am looking for. It is the port of Calais and I need to visualise
as many details of the harbour basins as possible.

Any suggestions? I downloaded the blue-lines-layer from the
Europe-shapefile-base from cloudmade. Unfortunately they do not provide
"land"-layers.

Regards,
Andreas

2012/9/6 Ian Turton <ijturton at gmail.com>

>
>
> On 6 September 2012 10:08, Andreas Schnieders <schnieders.a at gmail.com>wrote:
>
>> 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...?!
>>
>>
> Have a look at
> http://live.osgeo.org/en/quickstart/geoserver_quickstart.html which talks
> you through the process of styling WMS layers in GeoServer.
>
> Ian
> --
> Ian Turton
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120906/a992dc6d/attachment.html>


More information about the Users mailing list