[OpenLayers-Users] MousePosition Lat/Lon: Wrong in Google Chrome?
Mr. Puneet Kishor
punk.kish at gmail.com
Mon Oct 1 08:26:06 PDT 2012
On Oct 1, 2012, at 7:59 AM, darethehair <darethehair at gmail.com> wrote:
> Forgive me if this is a well-known bug, but I have not seen any mention of it
> from a brief Google check...
>
> I noticed today that my 'MousePosition" display code was totally wacky on
> Google Chrome, even though it was just fine in Firefox. So I found a
> generic web example and it exhibits the same behavior:
>
> http://openlayers.org/dev/examples/mouse-position.html
>
> On my version, the geo coordinates are totally wrong (!).
>
> My version of Google Chrome is Version 22.0.1229.79. Has this been noticed
> before? Is there an easy fix/workaround?
>
It is not wrong, but seems like the "numDigits" param is not being honored in Chrome. Interestingly, Chrome is built on webkit, but Safari (also webkit) seems to understand numDigits.
Look at the in the mouse control js. You might be able to spot something that you can patch.
--
Puneet Kishor
More information about the Users
mailing list