<div dir="ltr">wow -- that worked. by adding a new style keyed by 'viewed', all I had to do in my select feature code was:<div><br></div><div><div><span class="" style="white-space:pre">      </span>f.renderIntent = 'viewed';</div>
<div><span class="" style="white-space:pre">    </span>f.layer.drawFeature(f, 'viewed');</div><div><br></div></div><div><span style="white-space:pre">and it now is that state.</span></div><div><span style="white-space:pre"><br>
</span></div><div><span style="white-space:pre">-bdb</span></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 8, 2013 at 6:18 PM, Brian Busch <span dir="ltr"><<a href="mailto:bdbuschg@gmail.com" target="_blank">bdbuschg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm trying something just like that now -- adding a new 'renderIntent' like:<div><br></div><div>
<div>       var selectStyle = style.clone();</div><div>        if (options.iconOptions && options.iconOptions.selectedExternalGraphic) {</div>
<div>            selectStyle.context.externalGraphic = function (feature) {</div><div>                if (!feature.cluster) {</div><div>                    return feature.layer.iconOptions.selectedExternalGraphic;</div><div>

                }</div><div>                return "";</div><div>            };</div><div>        }</div><div>        selectStyle.defaultStyle.strokeColor = '#33ffff';</div><div>        selectStyle.defaultStyle.strokeWidth = 4;</div>

<div><br></div><div><span style="white-space:pre-wrap"> </span>var viewedStyle = style.clone();</div><div>        if (options.iconOptions && options.iconOptions.viewedExternalGraphic) {</div><div>            viewedStyle.context.externalGraphic = function (feature) {</div>

<div>                if (!feature.cluster) {</div><div>                    return feature.layer.iconOptions.viewedExternalGraphic;</div><div>                }</div><div>                return "";</div><div>            };</div>

<div>        }</div><div>        viewedStyle.defaultStyle.strokeColor = '#33ffff';</div><div>        viewedStyle.defaultStyle.strokeWidth = 4;</div><div>        var styleMap = new OpenLayers.StyleMap({ "default": style, 'select': selectStyle, "viewed": viewedStyle });</div>

</div><div class="gmail_extra"><br>and hoping to just set feature.renderIntent in the click event handler (then call layer.drawFeature(feature, renderIntent). I'm very new to OL.</div><div class="gmail_extra"><br></div>

<div class="gmail_extra">Thanks!</div><div class="gmail_extra"><br></div></div>
</blockquote></div><br></div>