Hi,<br><br>I need to reproject a point to a pre-defined projection (Proj4js.defs[&quot;EPSG:23031&quot;] = &quot;+proj=utm +zone=31 +ellps=intl +units=m +no_defs &quot;;).<br>The weird thing is that the projection is not working unless I insert and alert(&quot;stop for a while&quot;) after the line p = new OpenLayers.Projection(&#39;EPSG:23031&#39;);<br>
<br>Without the stop alert the point is shown in 4326 projection.<br>Isn&#39;t it weird?<br><br>Any ideas.<br>I&#39;m lost.<br><br>    &lt;script src=&quot;../proj4js/lib/defs/EPSG23031.js&quot;&gt;&lt;/script&gt;<br>    &lt;script src=&quot;../proj4js/lib/proj4js.js&quot;&gt;&lt;/script&gt;<br>
    &lt;script src=&quot;../lib/OpenLayers.js&quot;&gt;&lt;/script&gt;    <br>&lt;script type=&quot;text/javascript&quot;&gt;<br>function init()<br>
{<br>
           p = new OpenLayers.Projection(&#39;EPSG:23031&#39;);<br>//alert(&quot;stop for a while&quot;);<br>
            var proj = new OpenLayers.Projection(&quot;EPSG:4326&quot;);<br>
            var point = new OpenLayers.LonLat(-71, 42);<br>
            alert(point.transform(proj, p));<br>
}<br>...<br>&lt;/script&gt;<br>&lt;body onload=init()&quot;&gt;<br>....<br><br><br>