<div>Hi,</div>
<div>&nbsp;</div>
<div>In my application I want to consume ArcGIS 9.3 pre-generated tiles with OpenLayers. I generate the tiles with this parameters:</div>
<ul>
<li>xCoordinate: <font size="2">515228</font></li>
<li>yCoordinate: <font size="2">4750007</font></li>
<li>Scales: 75.000 - 60.000 - 40.000 - 25.000</li>
<li>Format: JPG</li></ul>
<div>&nbsp;</div>
<div>To consume these tiles with OpenLayers, I downloaded the AGS class&nbsp;(<a href="http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4774">http://trac.openlayers.org/browser/sandbox/stvn/arcgis-server/lib/OpenLayers/Layer/AGS.js?rev=4774</a>), and I wrote these parameters:</div>

<div>&nbsp;</div><font size="2">
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p><em>var layerAGSTiles = new OpenLayers.Layer.AGS( &quot;AGS&quot;,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em></p>
<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em><a href="http://arcgisserver/arcgiscache/Map1/Layers"><em>http://arcgisserver/arcgiscache/Map1/Layers</em></a><em>, </em></p>
<p><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layername: &#39;_alllayers&#39;, type:&#39;jpg&#39;, tileOrigin: new OpenLayers.LonLat(515228,4750007)} );</em></p>
<p><em>map.addLayer(layerAGSTiles);</em></p></blockquote>
<div dir="ltr">But the last part of the generated url is not ok (the part that depends of the tileOrigin parameter). Example:</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr"><a href="http://arcgisserver/arcgiscache/Map1_Nora_OrtoGV/Layers/_alllayers/L00/R05a5a11c/C08a6a108.jpg">http://<em>arcgisserver</em>/arcgiscache/Map1/Layers/_alllayers/L00/R05a5a11c/C08a6a108.jpg</a>&nbsp;(wrong url)</div>

<div dir="ltr">&nbsp; 
<div dir="ltr"><a href="http://arcgisserver/arcgiscache/Map1/Layers/_alllayers/L00/R00000000/C00000000.jpg">http://<em>arcgisserver</em>/arcgiscache/Map1/Layers/_alllayers/L00/R00000000/C00000000.jpg</a>&nbsp;(correct url)</div>

<div dir="ltr">&nbsp;</div>
<div dir="ltr">I don&#39;t know if this problem is about the tileOrigin that I write (I write the xMin and yMax that I write in the configuration of the tiles) or if it is because the algorithm is different for the newest version (9.3) or ArcGIS.</div>

<div dir="ltr">&nbsp;</div>
<div dir="ltr">Thanks for your help. Best Regards,</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">Gorka López</div></div>
<p>&nbsp;</p></font>