[OpenLayers-Dev] displayprojection on mouseposition for IExplorer SOLUTION

toni hernández tonidelacalle at gmail.com
Fri Mar 20 13:00:32 EDT 2009


hi ,

Just if someone needs it.

I found what the problem was. In IExplorer you have to pass the
displayprojection to the mouseposition control.
You do not neet to in FF.

new OpenLayers.Control.MousePosition(
                        {prefix: "RD Coordinates (", separator: ",", suffix:
")",
                        displayProjection: new
OpenLayers.Projection("EPSG:23031"),   //THIS IS MY DISPLAY PROJECTION.
                        div: document.getElementById("output")})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090320/8e816fb1/attachment.html


More information about the Dev mailing list