<font face="arial, helvetica, sans-serif" size="2"><div>No. This is not working as intended...</div><div><br></div><div>That works only if the feature.vector doesn't have a style applied. If it does, the layer's render intents are not used, and each feature.vectors remains the same.</div><div><br></div><div>Could this be a bug?</div><div><br></div><div><br><br><br></div></font><div class="">Sent from Alto - altomail.com</div><br><br><br><hr style="border:0;height:1px;color:#999;background-color:#999;width:100%;margin:0 0 9px 0;padding:0;"><b>From: </b>diegoguidi@gmail.com<diegoguidi@gmail.com><br><b>To: </b>mail.roliveira@gmail.com<mail.roliveira@gmail.com><br><b>cc: </b>openlayers-users@lists.osgeo.org<openlayers-users@lists.osgeo.org><br><b>Sent: </b>Monday, August 26, 2013<br><b>Subject: </b>Re: [OpenLayers-Users] Can't define hover behavior on a Feature.Vector or a Layer.Vector<br><br><title></title>On Mon, Aug 26, 2013 at 12:19 PM, <a href="mailto:mail.roliveira@gmail.com">mail.roliveira@gmail.com</a><br><<a href="mailto:mail.roliveira@gmail.com">mail.roliveira@gmail.com</a>> wrote:<br>> If an OpenLayers.StyleMap was supported I could define a renderIntent and<br>> therefore maybe implement the select behaviour.<br><br>you can use the style for default in the stylemap that you can pass to<br>vector layer<br>var layer_style = new OpenLayers.StyleMap({<br>            "default": new<br>OpenLayers.Style(OpenLayers.Util.applyDefaults({... })<br>            "select": new OpenLayers.Style(OpenLayers.Util.applyDefaults({... })<br>        });<br><br>var vectorLayer = new OpenLayers.Layer.Vector("prach layer", {<br>styleMap: layer_style,<br>renderers: ['SVG', 'VML', 'Canvas']<br>});<br><br>Diego Guidi<br>