mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-30 04:00:13 +03:00
Merge pull request #413 from esmondb/master
Fix for IIPServer style urls when using DZI.
This commit is contained in:
commit
c049fd3a48
1 changed files with 6 additions and 1 deletions
|
@ -138,7 +138,12 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead
|
|||
|
||||
if (url && !options.tilesUrl) {
|
||||
options.tilesUrl = url.replace(/([^\/]+)\.(dzi|xml|js)(\?.*|$)/, '$1_files/');
|
||||
options.queryParams = url.match(/\?.*/);
|
||||
|
||||
if (url.search(/\.(dzi|xml|js)\?/) != -1) {
|
||||
options.queryParams = url.match(/\?.*/);
|
||||
}else{
|
||||
options.queryParams = '';
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
|
|
Loading…
Add table
Reference in a new issue