Hi All,<div><br></div><div>I've been unable to get a working non sphericalMercator XYZ layer working with an ESRI cache service. The symptom's to my problem is that the wrong '/${x}/${y}/${z}' tile indexes/url's are always requested. Obviousuly this is a result of <b>my</b> mis-configuration. I'm completely stuck on this, so any help would be very much appreciated.</div>
<div><br></div><div>This is the public XYZ service I am trying to use:</div><div><a href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer">http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer</a></div>
<div><br></div><div>JavaScript (portable):</div><div><pre id="line1"><<span class="start-tag">html</span><span class="attribute-name"> xmlns</span>=<span class="attribute-value">"<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"</span>>
<<span class="start-tag">head</span>>
<<span class="start-tag">title</span>>OpenLayers Basic ESRI Map Cache Example</<span class="end-tag">title</span>>
        <<span class="start-tag">link</span><span class="attribute-name"> rel</span>=<span class="attribute-value">"stylesheet" </span><span class="attribute-name">href</span><span>="</span><a href="view-source:http://openlayers.org/api/theme/default/style.css">http://openlayers.org/api/theme/default/style.css</a><span>" </span><span class="attribute-name">type</span>=<span class="attribute-value">"text/css" </span><span class="error"><span class="attribute-name">/</span></span>>
        <<span class="start-tag">script</span><span class="attribute-name"> src</span><span>="</span><a href="view-source:http://openlayers.org/api/OpenLayers.js">http://openlayers.org/api/OpenLayers.js</a><span>"</span>></<span class="end-tag">script</span>>
        <<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>>
var map, layer;
function init(){
var layerExtent = new OpenLayers.Bounds(-83.3770978320226,42.5233499710321,-83.1508852249313,42.6258987240452);
var resolutions = [ 0.000297432625728785, 0.000152285504373138 ]; //just 2 for starters.
var tileSize = new OpenLayers.Size(512,512);
map = new OpenLayers.Map( 'map', {
'restrictedExtent': layerExtent
,'tileSize': tileSize
,'resolutions': resolutions
} );
layer = new OpenLayers.Layer.XYZ( "ESRI","<a href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer/tile/${z}/${y}/${x}.jpg">http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer/tile/${z}/${y}/${x}.jpg</a>",{sphericalMercator: false});
map.addLayer(layer);
map.zoomToExtent(map.restrictedExtent);
}
</<span class="end-tag">script</span>>
</<span class="end-tag">head</span>>
<<span class="start-tag">body</span><span class="attribute-name"> onload</span>=<span class="attribute-value">"init()"</span>>
        <<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"map" </span><span class="attribute-name">style</span>=<span class="attribute-value">"border: 1px solid black; width: 640px; height: 480px;"</span>></<span class="end-tag">div</span>>
</<span class="end-tag">body</span>>
</pre><pre id="line26"></<span class="end-tag">html</span>>
</pre></div><div><br></div><div>Obviously there is something that is different between the above XYZ service and the one in the examples (<a href="http://openlayers.org/dev/examples/xyz-esri.html">http://openlayers.org/dev/examples/xyz-esri.html</a>). Perhaps another example would be good to publish (providing I can get this working).</div>
<div><br></div><div>Thanks in advance :)</div><div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: medium; "><div class="restBody" style="font-size: 0.8em; margin-left: 22px; ">
<font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="font-size: small;"><br></span></font></div></span></div></div>