Use an url template for ol.source.Zoomify

This commit is contained in:
Frederic Junod
2017-02-09 11:44:57 +01:00
parent abb3bad108
commit a4a8d01bac
5 changed files with 69 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ var imgHeight = 6100;
var source = new ol.source.Zoomify({
url: 'http://vips.vtech.fr/cgi-bin/iipsrv.fcgi?zoomify=' +
'/mnt/MD1/AD00/plan_CHU-4HD-01/FOND.TIF/',
'/mnt/MD1/AD00/plan_CHU-4HD-01/FOND.TIF/{TileGroup}/{z}-{x}-{y}.jpg',
size: [imgWidth, imgHeight],
crossOrigin: 'anonymous'
});