[GIS] Using OpenLayers to render custom tiles

openlayers-2

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?

Thanks.

Best Answer

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.