<div>Hi,</div>
<div> </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> </div>
<div>To consume these tiles with OpenLayers, I downloaded the AGS class (<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> </div><font size="2">
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<p><em>var layerAGSTiles = new OpenLayers.Layer.AGS( "AGS", </em></p>
<p><em> </em><a href="http://arcgisserver/arcgiscache/Map1/Layers"><em>http://arcgisserver/arcgiscache/Map1/Layers</em></a><em>, </em></p>
<p><em> {layername: '_alllayers', type:'jpg', 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"> </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> (wrong url)</div>
<div dir="ltr">
<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> (correct url)</div>
<div dir="ltr"> </div>
<div dir="ltr">I don'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"> </div>
<div dir="ltr">Thanks for your help. Best Regards,</div>
<div dir="ltr"> </div>
<div dir="ltr">Gorka López</div></div>
<p> </p></font>