<span class="gI">I have a vector layer defined as below:<br><br>var poiLayer = new OpenLayers.Layer.Vector("poiLayer");<br>map.addLayer(poiLayer);<br><br>Hover control defined as below:<br><br>var hover = new OpenLayers.Control.SelectFeature(poiLayer, {<br>
hover: true,<br> overFeature: function(feature) {<br> var longLat = feature.wkt.match(/(\d+.\d+)/g);<br> popup = new OpenLayers.Popup("foo",<br> new OpenLayers.LonLat(longLat[0], longLat[1]),<br>
new OpenLayers.Size(10, 10),<br> feature.label,<br> true);<br> feature.popup = popup;<br> map.addPopup(popup);<br>
popup.updateSize();<br> }<br> });<br><br clear="all"></span><br>When a user hovers over a feature a popup is displayed. <br><br>If I comment out the overFeature part, the feature gets highlighted on mouse over. But, if I add the overFeature code the highlighting is lost. How do I retain the hightlighting along with the overFeature code?<br>
<br>-- <br>Cheers,<br>Abhi<br>