Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion htdocs/components/15_ImageMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Ensembl.Panel.ImageMap = Ensembl.Panel.Content.extend({
$.each(this.coords, function (i) { c[rect[i]] = parseInt(this, 10); });
}

panel.areas.push(c);
panel.areas.unshift(c);

if (this.klass.drag || this.klass.vdrag) {
// r = [ '#drag', image number, species number, species name, region, start, end, strand ]
Expand Down
3 changes: 3 additions & 0 deletions modules/EnsEMBL/Draw/GlyphSet/Vsynteny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ sub draw_chromosome {

my %coords;

my $highlight_z_index = 1;
foreach my $box (@$highlights) {
my $vc_start = $box->{'start'} * $scale + $v_offset;
my $vc_end = $box->{'end'} * $scale + $v_offset;
Expand All @@ -622,6 +623,7 @@ sub draw_chromosome {
$self->push($self->Rect({
'x' => $vc_start,
'y' => $h_offset + $box->{'side'} * ($wid+4),
'z' => $highlight_z_index,
'width' => $vc_end - $vc_start,
'height' => $wid,
'colour' => $box->{'col'},
Expand All @@ -632,6 +634,7 @@ sub draw_chromosome {
'href' => $box->{'href'},
'zmenu' => $box->{'zmenu'}
}));
$highlight_z_index += 1;

if ($box->{'marked'}==1 || $box->{'marked'}==-1) {
$self->push($self->Rect({
Expand Down