[OpenLayers-Users] Proj4js and IE

Mike Adair madair at dmsolutions.ca
Fri Jun 27 14:39:58 EDT 2008


I'm not aware of any problems using Proj4js in IE and it's difficult to 
say what else may be wrong without looking at a web site or more code.  
Make sure that the definition for EPSG:27582 is loaded.

Mike

Damien Lécole wrote:
> Hi list,
>
> I have a map in EPSG:4326. I would like the coordinates displayed by my
> Control.MousePosition in EPSG:27582. So I am using Proj4js and I have
> written the following code :
>
>
> var pop = new OpenLayers.Projection('EPSG:4326');
> var dpop = new OpenLayers.Projection('EPSG:27582');
> var extent = new OpenLayers.Bounds(-5,40,8,52 );
> var options = {theme: null,  maxResolution:'auto', maxExtent: extent,
> numZoomLevels:12, controls:[], projection: pop, displayProjection: dpop,
> units:"m"};
> map = new OpenLayers.Map('map',options); 
>
> This works fine with Firefox but not with Internet Explorer : coordinates
> are still in EPSG:4326. Am I missing something? Thanks.
>
> Regards,
> Damien Lécole
>   



More information about the Users mailing list