Dear All

I am building a context xml file based on a GeoServer WMS service.

I would like to create two layers in the context file based on the same WMS
layer but with different SLD styles.
Unfortunately, on my website the layer only appears as described in the
lowest layer in the context file (which appears on the top in the 'legend').
Turning the bottom layer in the legend on/off does nothing.

Would anybody be able to help?

I have seen a previous post which I think refers to this issue but I can't
find a resolution.
http://lists.eogeo.org/pipermail/wms-dev/2006-January/000819.html

Many Thanks

John Roberts
Manchester, UK


EXTRACT FROM CONTEXT FILE
****************************************************************************
*****

<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.0.0" title="OGC:WMS">
<OnlineResource xlink:type="simple" xlink:href="../../../geoserver/wms?"/>
</Server>
<Name>topp:topoarea</Name>
<Title>MasterMap Areas (Colour)</Title>
<SRS>EPSG:27700</SRS>
<FormatList><Format current="1">image/gif</Format></FormatList>
<StyleList>
<Style current="1">
<Name>MMAreaColour</Name>
<Title>Colour MasterMap</Title>
</Style>
</StyleList>
</Layer>

<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.0.0" title="OGC:WMS">
<OnlineResource xlink:type="simple" xlink:href="../../../geoserver/wms?"/>
</Server>
<Name>topp:topoarea</Name>
<Title>MasterMap Areas (BW)</Title>
<SRS>EPSG:27700</SRS>
<FormatList><Format current="1">image/gif</Format></FormatList>
<StyleList>
<Style current="1">
<Name>MMAreaBW</Name>
<Title>Black and White MasterMap</Title>
</Style>
</StyleList>
</Layer>

****************************************************************************
**********



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to