javascript - Custom Tile Source Multiple Image Hosts? -
in experimenting custom tile source in openseadragon, wondering if there way cycle multiple image hosts, improve async way in browser retrieves resources?
in
gettileurl: function(level, x, y){ return "imagecdn1.example.com/" + level + "/" + x + "_" + "y" + ".png" ..can put %d or sort of cycling value (of '1' in example) following round-robin set of calls tiles?
example sequence:
imagecdn1.example.com imagecdn2.example.com imagecdn3.example.com is possible?
as follow-up if not possible, improve performance anyway in browser, in should doing @ url level?
this not possible can in gettileurl method:
var inc = 0; gettileurl: function(level, x, y){ inc++; inc = inc % 3 + 1; //number of cdn have return "imagecdn" + inc + ".example.com/" + level + "/" + x + "_" + "y" + ".png" i doubt beneficial though.
one disadvantage can think of if tile cached @ 1 url, redownloaded anyway if gettileurl return different url.
Comments
Post a Comment