mouse position - displaying values

Hi, I’m trying to use the MousePosition control to display the Lat Lon value of the mouse pointer. I’ve seen this done on other maps. But on my map the values come out wrong.

The line of code is:

    map.addControl( new OpenLayers.Control.MousePosition() );

If I zoom out far enough, I can see a square containing the world map projection. The mouseposition values I get range from negative 20 million to positive 20 million. That’s both EW and NS. So the Greenwich meridian and the equator still seem to be located ok, but the values I’m getting on screen for locations in Manchester are not useful Lat Lon values.

Can anyone help? What have I missed?


I’ve never used OpenLayers, but might help.