[mapserver-users] GetStyles SLD does not include Opacity value
myOpenLayersUName
joanne.mcgraw at SYMPATICO.CA
Tue Jun 5 07:53:47 PDT 2012
That did the trick beautifully. Thank you, Steve!!
In summary, the layer is now defined as:
LAYER
NAME "Poly_wOpacity"
TYPE POLYGON
STATUS ON
PROJECTION
"init=epsg:3857"
END
INCLUDE "../../../mapserv/conf/sdeconnection.inc.map"
DATA "...,SHAPE,SDE.DEFAULT"
METADATA
"wms_title" "Polygon Layer w/Opacity of 20"
"wms_srs" "epsg:3857"
END
CLASS
NAME "Polygon Layer w/Opacity of 20"
STYLE
COLOR 255 0 0
OPACITY 20
END
END
END
And, the GetStyles request returns the expected "fill-opacity" CssParameter:
<StyledLayerDescriptor version="1.0.0" ...>
<NamedLayer>
<Name>nonContributingDrainage</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name>Non-Contributing Drainage Area</Name>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#ff0000</CssParameter>
<CssParameter name="fill-opacity">0.20</CssParameter>
</Fill>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979243.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list