added new graphicName symbolizer property, which allows to render well-known graphic symbols named "square", "cross", "x" and "triangle", in addition to the existing "circle". Thanks Tim for the tweaks and the example. r=tschaub,elemoine (closes #1398)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7634 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -23,4 +23,18 @@
|
||||
<topp:POP_CLASS>100,000 to 250,000</topp:POP_CLASS>
|
||||
</topp:tasmania_cities>
|
||||
</gml:featureMember>
|
||||
<gml:featureMember>
|
||||
<topp:tasmania_cities fid="tasmania_cities.2">
|
||||
<topp:the_geom>
|
||||
<gml:MultiPoint srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
|
||||
<gml:pointMember>
|
||||
<gml:Point>
|
||||
<gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">147,-41.1</gml:coordinates>
|
||||
</gml:Point>
|
||||
</gml:pointMember>
|
||||
</gml:MultiPoint>
|
||||
</topp:the_geom>
|
||||
<topp:CNTRY_NAME>Australia</topp:CNTRY_NAME>
|
||||
</topp:tasmania_cities>
|
||||
</gml:featureMember>
|
||||
</wfs:FeatureCollection>
|
||||
|
||||
@@ -528,13 +528,27 @@
|
||||
<sld:IsDefault>1</sld:IsDefault>
|
||||
<sld:FeatureTypeStyle>
|
||||
<sld:Rule>
|
||||
<ogc:Filter>
|
||||
<ogc:FeatureId fid="tasmania_cities.1"/>
|
||||
</ogc:Filter>
|
||||
<sld:PointSymbolizer>
|
||||
<sld:Graphic>
|
||||
<sld:ExternalGraphic>
|
||||
<sld:OnlineResource xlink:href="../img/marker.png" />
|
||||
<sld:Format>image/png</sld:Format>
|
||||
</sld:ExternalGraphic>
|
||||
<sld:Opacity>0.5</sld:Opacity>
|
||||
<sld:Opacity>0.7</sld:Opacity>
|
||||
<sld:Size>14</sld:Size>
|
||||
</sld:Graphic>
|
||||
</sld:PointSymbolizer>
|
||||
</sld:Rule>
|
||||
<sld:Rule>
|
||||
<sld:ElseFilter/>
|
||||
<sld:PointSymbolizer>
|
||||
<sld:Graphic>
|
||||
<sld:Mark>
|
||||
<sld:WellKnownName>cross</sld:WellKnownName>
|
||||
</sld:Mark>
|
||||
<sld:Size>10</sld:Size>
|
||||
</sld:Graphic>
|
||||
</sld:PointSymbolizer>
|
||||
|
||||
Reference in New Issue
Block a user