Thanks again for all your investigative work.

I think you're right - with '0x' Google just expects an 8-digit
hexidecimal. I'm not so sure that all hues are not possible though -
the characters between the initial 'F' and the trailing '00' can be
anything... and since the number expected is a 'pure hue', any number
combination between 0~360 is possible. yet how to formulate this into
code... a lost cause really, might as well just use 'pure hue' input
(number between 0~360) right off the bat.

As for the 'switch' detected earlier... I think google is expecting a
hexidecimal mix that, when converted to a decimal number, ~results~ in
a number nine digits or more - this is always the case when using the
'0xFxxxxx00' formula. If there are less, then some part of their code
'breaks', namely the part that applies the colour chosen to labels.
Consider the difference between, for the 'road' element (option
'all'), '0xF00000' and '0xF0000000': the first colour, magenta, is
applied to roads, but the signs are of different colours, while the
second colours all 'road' elements in the same tone of blue with only
differences in lightness and/or saturation.

I think we have taken this far enough - the google code will evolve
eventually, and the 'pure hue' input, a major discovery, will suffice
to style tiles for all systems and supports.

Thank you so much for your help in this - If we don't speak again
before, I'll let you know when everything is ready to go. Cheers!

On Aug 27, 1:38 pm, William <[email protected]> wrote:
> On Aug 27, 7:58 pm, Sefu <[email protected]> wrote:
>
> > I'm increasingly persuaded that we're dealing with three behaviours
> > here: 'pure hue' behaviour ('360'), RGB behaviour ('#FF0000') and
> > hexadecimal behaviour ('0xFFFFF000').
>
> I think RGB and 8-digit hexadecimal behave the same as absolute hue
> references, but not all hues are possible with the 8 digit
> hexadecimal.
>
> I've added the rgb --> hue conversion function to the previous version
> of the map which converted hues to 8-digit hexadecimal, resulting in
> the following hue calculations:
>
> { hue: hexHue(rgbToHue("#ff9100")) }
>
> http://www.william-map.com/20100827/1/paris_hex.htm
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to