[GIS] Loading GeoWebCache tiles into OpenLayers

geowebcacheopenlayerstiles

I have geotiff image that I want to show on a site locally (when there is no internet connection and browsing to localhost).

I've seen that OpenLayers 3 has XYZ layer but the format doesn't match the GeoWebCache output folder.

How can I view tiles locally from GeoWebCache… or is there free app which can generate XYZ tiles from Tiff ?

Best Answer

I've managed to solve this in a different way. I used this post http://www.aubrett.com/InformationTechnology/Geospatial/gdal2tilesTMSStructure.aspx to create TMS tiles and than using ol.source.XYZ to display them.