Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anyone had success using OpenLayers and the ArcGISCache layer beyond the examples? I'd like to mix tiles with different resolutions and although they seem to scale correctly they do not translate correctly. Code to translate the tiles appears to be missing with the exception of a % translation necessary after the scale:

transformDiv: function(scale) {

    // scale the layer div = 100 * scale + '%'; = 100 * scale + '%';

    // and translate the layer div as necessary

    var size =;
    var lcX = parseInt(, 10);
    var lcY = parseInt(, 10);
    var x = (lcX - (size.w / 2.0)) * (scale - 1);
    var y = (lcY - (size.h / 2.0)) * (scale - 1); = x + '%'; = y + '%';
  • ESRI

It appears that ArcGIS JSAPI has an even greater limitation...all the tiles must have exactly the same resolution. Can someone from ESRI discuss/confirm this limitation?

share|improve this question
Yes, I can confirm that when you create a cache, every tile in every scale level is dictated by one DPI setting for resolution. You could potentially workaround this with a bodge, but longer answer = new q.… – Simon Jul 25 '12 at 13:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.