I have a very large image which I want to display using OpenLayers so visitors can zoom in and pan. I have tiled it (1 image for the first layer, 4 for the second, 9 for the third, etc.) and I am trying to display it using a TMS layer.

Following this information I have it working more or less. However, on some zoom levels, I can not pan all the way to the right and the image seems cut off (even though the tiles exist).

I have set my image height and width in px as the layer's maxExtent.

Is there a better way to do this?


1 Answer 1


With software like maptiler you can export images to a TMS-compatible format and keep georeferencing, so you can combine this with OSM or Google background images. Maybe you can get better results with this.

  • I can't use maptiler since I need to automate this in a script, and I'm tiling images which are not in a standard format. For now, though, I've downloaded it and I'm tiling other images to see exactly how it does it. Thanks for the response!
    – user14077
    Commented Jan 9, 2013 at 10:36
  • Maybe a different API works better with your custom tiles, leafletjs.com is intended to work with TMS, or is that not an option?
    – warrieka
    Commented Jan 9, 2013 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.