<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<div><br></div><div>I am wondering if anyone has been able to get a custom tile cached layer from TileCache to display correctly in the ArcGIS server javascript api? Or can someone direct me on the proper configuration. This page describes creating a custom tiled layer in the api:</div><div><br></div><div><a href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_custom_tiled.html">http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_custom_tiled.html</a></div><div><br></div><div>It seems I need to add the scale and resolutions of my zoom levels. However, I am having difficulty doing this.</div><div><a href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_custom_tiled.html"></a><br><br></div><div>This is what my tileinfo looks like:</div><div><br></div><div><br></div><div><div>this.tileInfo = new esri.layers.TileInfo({</div><div> "rows" : 512,</div><div> "cols" : 512,</div><div> "dpi" : 72,</div><div> "format" : "JPEG",</div><div> "compressionQuality" : 0,</div><div> "origin" : {</div><div> "x" : -180,</div><div> "y" : 90</div><div> },</div><div> "spatialReference" : {</div><div> "wkid" : 4326</div><div> },</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>"lods" : [</div><div> {"level" : 0, "resolution" : 0.00014444444444444444444444444444444, "scale": 45497.4416},</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> {"level" : 1, "resolution" : 0.000031747816880420907984514989617448, "scale": 10000},</div><div> {"level" : 2, "resolution" : 0.000015873908440210453992257494808724, "scale": 5000},</div><div> {"level" : 3, "resolution" : 0.00000011023547527923926383512149172725, "scale": 2500}</div><div> ]</div><div> });</div><div><br></div><div><br></div><div>I used this link to compute my resolutions by hand:</div><div><br></div><div>http://code.google.com/p/xenia/wiki/TileCache</div><div><br></div><div>I actually do seem to be getting back tiles; However, all of them are outside the range of my data and I simply get white tiles. My data bounding box is -77.92,-40.75,-77.79,40.85.</div><div><br></div><div>My tile urls look something like this /0/1216/1380.jpeg when I think they should look more like this /0/0/1.jpeg</div><div><br></div><div>Thanks in advance for any help on what I may be doing wrong.</div><div><br></div><div>Scott</div></div><div><br></div><div><br><div>
<div>********************************************* </div>Scott Pezanowski
<div></div>
<div></div>
<div></div>email: scottpez@hotmail.com
<div></div>*********************************************</div><br><br></div>                                            </body>
</html>