[Bioperl-l] Bio::Graphics imagemap and padding
Adam Witney
awitney at sgul.ac.uk
Mon Dec 5 11:09:39 UTC 2011
Hi,
Image maps seem to be out of position if you use padding in the Panel, like this:
my $panel = Bio::Graphics::Panel->new( ….. -pad_left => 20, -pad_right => 20 …… );
Without these options, the image map is fine. Is this a known issue?
Also on a side note, I noticed that when using Bio::Graphics with Dancer, some of the CGI code was blocking somewhere (I found a reference to a similar problem with CGI and Catalyst), swapping CGI with HTML::Entities fixes it:
sub create_web_map {
….
eval "require HTML::Entities" unless HTML::Entities->can('encode_entities');
….
my $title = HTML::Entities::encode_entities($self->make_link($tr,$feature,1));
my $target = HTML::Entities::encode_entities($self->make_link($tgr,$feature,1));
…..
}
Thanks
Adam
More information about the Bioperl-l
mailing list