<div dir="ltr">Hey,<div><br></div><div style>You'll have to add the following wrapper before you load projections from <a href="http://spatialreference.org">spatialreference.org</a> and before you load OpenLayers.js:</div>
<div style><br></div><div style><div> <script></div><div> window.Proj4js = {</div><div> Proj: function(code) { return proj4(Proj4js.defs[code]); },</div><div> defs: proj4.defs,</div><div>
transform: proj4</div><div> };</div><div> </script></div><div><br></div><div style>This is all.</div><div style><br></div><div style>Andreas.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Oct 3, 2013 at 7:28 AM, Andrea Battisti <span dir="ltr"><<a href="mailto:battisti@actgate.com" target="_blank">battisti@actgate.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Looks like that the latest version of Proj4js from:<br>
<a href="https://github.com/proj4js/proj4js" target="_blank">https://github.com/proj4js/<u></u>proj4js</a><br>
<br>
has a slightly different API then before, and indeed it does not seem to work with the plain OL 2.13.1.<br>
<br>
Question: is there a patch available to use OL against the new Proj4js?<br>
If not, which is the best way to make it compatible?<br>
<br>
As far as I see the code to adapt will be the OpenLayers.Projection class in Projection.js; is that enough? are there other changes needed from the OL perspective?<br>
<br>
<br>
Thanks in advance!<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Ing. Andrea Battisti<br>
______________________________<u></u>_________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.osgeo.org" target="_blank">Dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>dev</a><br>
</font></span></blockquote></div><br></div>