[OpenLayers-Dev] How to change displayProjection for
MousePosition Control
Christopher Schmidt
crschmidt at metacarta.com
Thu Mar 27 17:51:31 EDT 2008
On Thu, Mar 27, 2008 at 03:42:51PM +0100, "Bernd Grünefeld" wrote:
> Hi all,
> I initialze my map with projection: "EPSG:31467".
>
> In the MousePosition Control i want to display the coordinates in epsg:4326 in DD MM SS.
>
> If I change the displayProjection of MousePosition to epsg:4326:
>
> mp=new OpenLayers.Control.MousePosition();
> mp.displayProjection = new OpenLayers.Projection("EPSG:4326");
> map.addControl(mp);
>
> the coordinates displayed are still in EPSG:31467.
> Is this a bug or what i`m doing wrong?
You probably don't have proj4js properly included in your page.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list