tofuninjah / geoxml3

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

colorMode doesn't work as specified #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<colorMode>random</colorMode>

only works when no color is specified:

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=
http://www.geocodezip.com/geoxml3_test/kml_random_color_kml_nocolor.xml

test cases:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=
http://www.geocodezip.com/geoxml3_test/kml_random_color_kml_white.xml

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=
http://www.geocodezip.com/geoxml3_test/kml_random_color_kml_reverseInner.xml

Should work as defined in the kml reference:
<colorMode>
Values for <colorMode> are normal (no effect) and random. A value of random 
applies a random linear scale to the base <color> as follows.
To achieve a truly random selection of colors, specify a base <color> of white 
(ffffffff).
If you specify a single color component (for example, a value of ff0000ff for 
red), random color values for that one component (red) will be selected. In 
this case, the values would range from 00 (black) to ff (full red).
If you specify values for two or for all three color components, a random 
linear scale is applied to each color component, with results ranging from 
black to the maximum values specified for each component.
The opacity of a color comes from the alpha component of <color> and is never 
randomized.

Original issue reported on code.google.com by geocodezip on 19 Jan 2012 at 4:16

GoogleCodeExporter commented 8 years ago
Set to be fixed in new patch.

Original comment by sineswi...@gmail.com on 8 Feb 2012 at 3:45

GoogleCodeExporter commented 8 years ago
fixed in kmz branch

Original comment by geocodezip on 23 Feb 2012 at 4:58