<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Horst,<br>
Please add the below piece of code to highlight hovered feature.<br>
<br>
<span style="color: rgb(153, 51, 0);">var hoverControl =</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> new OpenLayers.Control.SelectFeature([<span style="color: rgb(0, 0, 255);">layername</span>], {
</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> box: true,</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> hover: true,</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> highlightOnly: true,</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> renderIntent: "<span style="color: rgb(0, 0, 255);">temporary</span>" }
</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> ); </span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> map.addControl(hoverControl);</span><br style="color: rgb(153, 51, 0);">
<span style="color: rgb(153, 51, 0);"> hoverControl.activate(); </span><br>
<br>
<br>
"<span style="color: rgb(0, 0, 255);">layername</span>" --- Please replace with ur layer name .<br>
"<span style="color: rgb(0, 0, 255);">temporary</span>" --- This is the style of feature which will appear on hover. Below is the code related to this.<br>
<br>
var user_style_tmp= new OpenLayers.Style({strokeColor: "#09DEF2",<br>
strokeOpacity: 0.7,<br>
strokeWidth: 3, <br>
fillColor: '#09DEF2',<br>
pointRadius: 2
<br>
});<br>
<br>
userstyleMap = new OpenLayers.StyleMap({'default':user_style_def, 'temporary': user_style_tmp, 'select': user_style_sel});<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">With Regards,<br>
Neelima Emmani<br>
<br>
</div>
</div>
</div>
</body>
</html>