Alan, <br>
<br>
This seems strange to me. Does it work in the following example for you?<br>
<a href="http://www.openlayers.org/dev/examples/controls.html">http://www.openlayers.org/dev/examples/controls.html</a><br>
<br>
It would help us to understand the situation better if you could send us a link<br>
to the page you are developing or the code that&nbsp; is showing the problem.<br>
<br>
Cheers,<br>
<br>
Erik<br><br><div><span class="gmail_quote">On 10/24/06, <b class="gmail_sendername">Alan U</b> &lt;<a href="mailto:alan.underwood@hotmail.co.uk">alan.underwood@hotmail.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Taking the code from the trunk, the mouse position control seems a bit wrong.<br>I was getting no feedback in FF and only feedback in IE when making a click<br>on the map.<br><br>In the redraw function I changed:<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (this.lastXy == null ||<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Math.abs(evt.xy.x
- this.lastXy.x) &gt; this.granularity ||<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Math.abs(evt.xy.y
- this.lastXy.y) &gt; this.granularity)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ //don't update<br><br>to:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (this.lastXy == null ||<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Math.abs(evt.xy.x
- this.lastXy.x) &lt; this.granularity ||<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Math.abs(evt.xy.y
- this.lastXy.y) &lt; this.granularity)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{//don't update<br><br>Note the greater/less than signs.<br><br>Also, with the granularity value even set to 1, moving slowly across the map<br>causes no update of the xy coords in the control. Though this is designed
<br>for, it is not intuitive imo. If you are trying to get a coordinate<br>precisely, then it is highly likely you will be moving the mouse below the<br>granularity level: thus I think the default should be 0.<br><br>Alan
<br>--<br>View this message in context: <a href="http://www.nabble.com/Mouse-position-control-tf2501061.html#a6972149">http://www.nabble.com/Mouse-position-control-tf2501061.html#a6972149</a><br>Sent from the OpenLayers Users mailing list archive at 
<a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/users">
http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br>