Skip to content

Commit e934d5a

Browse files
committed
speeding up image map loading
1 parent 0864728 commit e934d5a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mavevis
22
Title: Visualization for MaveDB
3-
Version: 0.1.1.9000
3+
Version: 0.1.2.9000
44
Authors@R: person("Jochen", "Weile", email = "[email protected]", role = c("aut", "cre"))
55
Description: Query data from MaveDB and visualize as genophenograms with added tracks for structure information.
66
Depends: R (>= 3.2.3)

docker/cgi/mavevis.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ $(document).ready(function(){
295295
.done(function(url) {
296296
//set the download target
297297
$("#jobIDHolder").val(currJobID);
298+
$("#mainProgressbar .progress-label").text("Loading map...");
298299
fetchMapAndCombine(url);
299300
})
300301
.fail(function(xhr, status, error) {
@@ -318,15 +319,19 @@ $(document).ready(function(){
318319
$.post("getMap.R",{
319320
jobID: currJobID
320321
}).done(function(map) {
322+
$("#mainProgressbar .progress-label").text("Done!");
321323
$("#imagepanel").html(
322-
'<img src="'+url+'" alt="result" useMap="#pxmap"/>' +
323-
map
324+
'<img src="'+url+'" alt="result" useMap="#pxmap"/>'
324325
)
325326
$("#imagepanel").show();
326327
$("#downloadpanel").show();
327328
$("#mainProgressbar").hide();
328329
$("#legendbox").show();
329330
$("#outputpanel").show();
331+
//allow image to display before appending map content
332+
setTimeout(function(){
333+
$("#imagepanel").append(map);
334+
},100);
330335
}).fail(function(xhr, status, error) {
331336
showError(error);
332337
$("#imagepanel").html(

0 commit comments

Comments
 (0)