Hi,<div><br></div><div>thank you for your response, it seems like I have not been clear enough.</div><div>If every single vector feature has its own style, the layer's styleMap object cannot be used (it looks like it is ignored, check here: <a href="http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle-1.html">http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle-1.html</a>) that's why I try to use selectStyle.</div>
<div>I've update the original example as well: <a href="http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle.html">http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle.html</a>.</div><div><br></div><div>
BR,</div><div>Attila</div><div><div><br><div class="gmail_quote">2012/7/30 Alexandre Dubé <span dir="ltr"><<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
        Instead of defining a selectStyle in the control, you could try
      setting a styleMap to your layer object.  This example should
      point you to the right direction since it uses a '${type}'
      symbolizer value and a select control :<br>
      <br>
        <a href="http://openlayers.org/dev/examples/graphic-name.html" target="_blank">http://openlayers.org/dev/examples/graphic-name.html</a><br>
      <br>
      HTH,<br>
      <br>
      Alexandre<br>
      <br>
      P.S. Btw, this question would have been more suitable for the
      users mailing list.<div><div class="h5"><br>
      <br>
      <br>
      On 12-07-30 05:52 AM, BERÉNYI Attila wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">Hi!
      <div><br>
      </div>
      <div>I wanted to use the selectFeature control's selectStyle
        property to display a property-based label for the selected
        features, however, it seems that the selectStyle property
        doesn't support property-based styling.</div>
      <div>Example here: <a href="http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle.html" target="_blank">http://gislab.hu/ol/selectFeature-selectStyle-propertyStyle.html</a></div>
      <div><br>
      </div>
      <div>Is this a bug or am I doing something wrong?</div>
      <div><br>
      </div>
      <div>BR,</div>
      <div>Attila</div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Dev mailing list
<a href="mailto:Dev@lists.osgeo.org" target="_blank">Dev@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <br>
    <pre cols="72">-- 
Alexandre Dubé
Mapgears
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a>
</pre>
  </font></span></div>

<br>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.osgeo.org">Dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>BERÉNYI Attila, PhD<br>ügyvezető igazgató<br><br>GISLab Hungary Kft.<br>1031 Budapest, Kadosa utca 59.<br>+36 20 457 1800<br><br>
</div></div>