<pre>
In addition to the wrapper, I had to overwrite the Projection getCode function:
<script>
OpenLayers.Projection.prototype.getCode = function() {
return this.proj ? this.proj.oProj.srsCode : this.projCode;
};
</script>
instead of "return this.proj ? this.proj.srsCode : this.projCode;", or else was having problems with this line in OpenLayers.Layer.ArcGIS93Rest.getURL:
var projWords = this.projection.getCode().split(":");
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">Andreas Hocevar-4 wrote</div>
<div class="quote-message">
Hey,
You'll have to add the following wrapper before you load projections from
spatialreference.org and before you load OpenLayers.js:
<script>
window.Proj4js = {
Proj: function(code) { return proj4(Proj4js.defs[code]); },
defs: proj4.defs,
transform: proj4
};
</script>
This is all.
Andreas.
</div>
</div></blockquote>
</pre>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/OL-2-13-1-latest-Proj4js-tp5081636p5093029.html">Re: OL 2.13.1 + latest Proj4js (?)</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/OpenLayers-Dev-f3888596.html">OpenLayers Dev mailing list archive</a> at Nabble.com.<br/>