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 local tile source of OSM tiles. I'd like to show the tile zoom, x, y on the tile so that I can optimize and create small offline groups of tile for specific areas(polygons).

I can get the tile boundary to show by setting a negative gutter, but I need the tile url info (zoom, x, y) to help with the manual optimization.

I saw an online resource a while back that showed this exact information on a map, but I've lost it :(

I know this is probably a simple problem to solve, but I haven't found any solutions after a while of playing around with it and many searches. Here is my layer

var newLayer = new OpenLayers.Layer.OSM("GC-h", "tiles/GC/composite_h/${z}/${x}/${y}.png", {numZoomLevels: 19, gutter: -1, isBaseLayer: false});
map.addLayer(newLayer);

TIA!

share|improve this question

1 Answer 1

After half an hour of searching I found a service which generates images with your custom size and text. You can use this, and put x/y/z as text: http://placehold.it/256x256&text=12/123/321

Sample image with given URL

It may have limiting usage terms.

share|improve this answer

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.