DZI JSONp was broken; fixed

Also added support for DZI files with .xml extension
This commit is contained in:
Ian Gilman 2013-05-09 11:02:25 -07:00
parent f817d4d4ac
commit 8ded889af4

View File

@ -109,7 +109,7 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, {
}
if (url && !options.tilesUrl) {
options.tilesUrl = url.replace(/([^\/]+)\.dzi$/, '$1_files/');
options.tilesUrl = url.replace(/([^\/]+)\.(dzi|xml|js)$/, '$1_files/');
}
return options;