I'm using OpenLayers to display a set of TMS tiles I have on my webserver. Plain and simple, I was wondering how I would go about overlaying a set of GeoTiff files I have over the tiles so that when I click somewhere on the map, it would give me the information from the tiff files (altitude and such).

2 Answers 2


May seem a bit clumsy, but the way i see it, i'd build another tms layer containing nicely rendered dem (heightmap) just for display, and at the same time load the dem into perhaps postgis raster. Then, upon request, i'd qiery the database with current position for the dem value


Mapbox raster tile query

https://github.com/mapbox/raster-tile-query Will let you read RGB VALUES out of your images

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.