mbohun / biolink

Automatically exported from code.google.com/p/biolink
0 stars 0 forks source link

Can't set map background colour to a transparent (or partially transparent) colour #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to set the map background colour to a colour with a non-maximum alpha 
component (<255) results in an exception.

Original issue reported on code.google.com by david.ba...@gmail.com on 27 Sep 2011 at 7:01

GoogleCodeExporter commented 9 years ago
The component itself cannot accept the colour. The solution provided is to 
remove (or maximize) the alpha component of the selected colour when applying 
the change. This might seem confusing, but generally it makes no sense to have 
a transparent background when the map is being displayed in the map window (as 
the map background is the bottom most layers. It might be nice to be able to 
save the map to an image with a transparent background, but that is a separate 
issue, and will require an option window to set the background colour when 
exporting the image.

Original comment by david.ba...@gmail.com on 27 Sep 2011 at 7:03