Hi All,

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 *my* mis-configuration. I'm completely stuck on this, so any
help would be very much appreciated.

This is the public XYZ service I am trying to use:
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer

JavaScript (portable):

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>OpenLayers Basic ESRI Map Cache Example</title>
        <link rel="stylesheet"
href="http://openlayers.org/api/theme/default/style.css
<view-source:http://openlayers.org/api/theme/default/style.css>"
type="text/css" />
        <script src="http://openlayers.org/api/OpenLayers.js
<view-source:http://openlayers.org/api/OpenLayers.js>"></script>
        <script type="text/javascript">
        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","http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer/tile/${z}/${y}/${x}.jpg",{sphericalMercator:
false});
            map.addLayer(layer);
            map.zoomToExtent(map.restrictedExtent);
        }
    </script>
</head>
<body onload="init()">
        <div id="map" style="border: 1px solid black; width: 640px; height:
480px;"></div>
</body>

</html>


Obviously there is something that is different between the above XYZ service
and the one in the examples (
http://openlayers.org/dev/examples/xyz-esri.html). Perhaps another example
would be good to publish (providing I can get this working).

Thanks in advance :)
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to