[OpenLayers-Trac] [OpenLayers] #3406: rgba(4) not working as color
option in Safari
OpenLayers
trac-20090302 at openlayers.org
Tue Jul 12 11:18:16 EDT 2011
#3406: rgba(4) not working as color option in Safari
----------------------+-----------------------------------------------------
Reporter: dsw2127 | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.12 Release
Component: StyleMap | Version: 2.10
Keywords: rgba | State:
----------------------+-----------------------------------------------------
When attempting to specify a color for any of various features in a
StyleMap in the rgba(r, g, b, a) format, it works in Chrome and Firefox,
but does not in Safari. In Safari the color is either the default or
black. Other formats for colors do work in Safari, such as '#RRGGBB',
'blue', etc.
For example, I have modified the "labeled features example"
(http://openlayers.org/dev/examples/vector-features-with-text.html) so
that the 'fillColor' in the default StyleMap is no longer '#FF5500' but is
now 'rgba(0,0,255,1.0)'. See this link: http://www.the-
fed.org/maps/labeled_features.html . This works fine in Chrome and Firefox
which I have tried on Mac OSX, Windows Vista, and Kubuntu, but not in
Safari (4 and 5) on Mac OSX or Windows Vista. Notice in Safari the
polygons are filled with black.
I also modified the fillOpacity from 0.5 to 1.0 so the black would be more
evident.
--
Ticket URL: <http://trac.openlayers.org/ticket/3406>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list