diff --git a/src/dzitilesource.js b/src/dzitilesource.js index 2a8150c4..6f148380 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -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;