diff --git a/htdocs/components/15_ImageMap.js b/htdocs/components/15_ImageMap.js index d3c27c61b9..acb6ae8ea8 100644 --- a/htdocs/components/15_ImageMap.js +++ b/htdocs/components/15_ImageMap.js @@ -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 ] diff --git a/modules/EnsEMBL/Draw/GlyphSet/Vsynteny.pm b/modules/EnsEMBL/Draw/GlyphSet/Vsynteny.pm index 1325f8383a..8f7d478aaf 100644 --- a/modules/EnsEMBL/Draw/GlyphSet/Vsynteny.pm +++ b/modules/EnsEMBL/Draw/GlyphSet/Vsynteny.pm @@ -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; @@ -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'}, @@ -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({