Hi all,<br><br>i have to show a lot of icons inside my map and used clustering to realize this.So i started to load all my icons from the WFS with the other attributes that styling related.<br>For filtering i use a style map at the moment. So i do all the styling logic with rules. What i doesn&#39;t like on this way is, that the styling rules inside my code and that i have to use a fixed graphicHeight and graphicWidth.<br>
<br>Can i use something like the SLD bellow to do all the styling stuff that i like to do ? Have anyone an example which us ExternalGraphic ?<br><br>          &lt;Rule&gt;<br>            &lt;ogc:Filter&gt;<br>              &lt;ogc:PropertyIsEqualTo&gt;<br>
                &lt;ogc:PropertyName&gt;category&lt;/ogc:PropertyName&gt;<br>                  &lt;ogc:Literal&gt;61&lt;/ogc:Literal&gt;<br>              &lt;/ogc:PropertyIsEqualTo&gt;<br>            &lt;/ogc:Filter&gt;<br>
            &lt;PointSymbolizer&gt;<br>              &lt;Graphic&gt;<br>                &lt;ExternalGraphic&gt;<br>                  &lt;OnlineResource xlink:type=&quot;simple&quot; xlink:href=&quot;./resources/img/traffic/iconSmall62.png&quot;/&gt;<br>
                  &lt;Format&gt;image/png&lt;/Format&gt;<br>                &lt;/ExternalGraphic&gt;<br>                &lt;Mark/&gt;<br>              &lt;/Graphic&gt;<br>            &lt;/PointSymbolizer&gt;<br>          &lt;/Rule&gt;<br>
<br>Stylemap Example:<br><br>    var infoStyle = new OpenLayers.Style(<br>        // the first argument is a base symbolizer<br>        // all other symbolizers in rules will extend this one<br>        {<br>        },<br>
        {<br>            rules: [<br>                new OpenLayers.Rule({<br>                    filter: new OpenLayers.Filter.Comparison({<br>                        type: OpenLayers.Filter.Comparison.GREATER_THAN,<br>                        property: &quot;count&quot;, // the &quot;foo&quot; feature attribute<br>
                        value: 1<br>                    }),<br>                    symbolizer: {<br>                        externalGraphic: &quot;./resources/img/cluster.png&quot;,<br>                        label: &quot;${count}&quot;,<br>
                        graphicWidth: 25, <br>                        graphicHeight: 25<br>                    }<br>                }),<br>                new OpenLayers.Rule({<br>                    filter: new OpenLayers.Filter.Comparison({<br>
                        type: OpenLayers.Filter.Comparison.EQUAL_TO,<br>                        property: &quot;category&quot;, // the &quot;foo&quot; feature attribute<br>                        value: 62<br>                    }),<br>
                    symbolizer: {<br>                        externalGraphic: &quot;./resources/img/traffic/iconSmall62.png&quot;,<br>                        graphicWidth: 25, <br>                        graphicHeight: 25<br>
                    }<br>                }),<br>etc...<br>