Valid and unique URI for images in the tile queue
This commit is contained in:
@@ -26,8 +26,12 @@ describe('ol.TileQueue', function() {
|
||||
++tileId;
|
||||
var tileCoord = [tileId, tileId, tileId];
|
||||
var state = 0; // IDLE
|
||||
var src = 'data:image/gif;base64,R0lGODlhAQABAPAAAP8AAP///' +
|
||||
'yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==#' + tileId;
|
||||
// The tile queue requires a unique URI for each item added.
|
||||
// Browsers still load the resource even if they don't understand
|
||||
// the charset. So we create a unique URI by abusing the charset.
|
||||
var src = 'data:image/gif;charset=junk-' + tileId +
|
||||
';base64,R0lGODlhAQABAPAAAP8AAP///' +
|
||||
'yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==';
|
||||
|
||||
var tileLoadFunction = opt_tileLoadFunction ?
|
||||
opt_tileLoadFunction : ol.source.Image.defaultImageLoadFunction;
|
||||
|
||||
Reference in New Issue
Block a user