Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 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.

share|improve this answer
    
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 Jan 9 '13 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 Jan 9 '13 at 12:56
add comment

Your Answer

 
discard

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

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