Thank you very much, this is exactly what I was looking for. 

Hunter McMillen

On Saturday, July 7, 2012 6:16:43 AM UTC-4, Enoch Lau (Google Employee) 
wrote:
>
> The first color in the array represents an intensity of 0 and the last 
> color in the array represents the maximum intensity (either automatically 
> determined, or manually set through the maxIntensity option). Colors in 
> between are taken to be evenly spaced. For example, if you have this 
> gradient:
>   ['red', 'green', 'blue']
> and the maximum intensity is 10, 'red' means an intensity of 0, 'green' 
> means 5, and 'blue' means 10. If the intensity is 7.5, then it's halfway 
> between green and blue. Typically, you would want the first entry in the 
> gradient to be 'transparent' or some semi-transparent color, otherwise your 
> entire map will be covered up.
>
> Enoch
>
> On Saturday, July 7, 2012 3:11:35 AM UTC+10, Hunter McMillen wrote:
>>
>> Hello, 
>>
>> I am working on a project where our team has previously been drawing our 
>> own heat maps, but we stumbled upon the HeatMapLayer in the API the other 
>> day and now it is my task to try and integrate it into our application. I 
>> was wondering if there is any more information about the 
>> HeatMapLayerOptions and the HeatMapLayer itself. I am particularly 
>> interested in the gradient option of the HeatMapLayerOptions; this is the 
>> description that is posted in the api:
>>
>>    gradient Array<string> The color gradient of the heatmap, specified as 
>> an array of CSS color strings. All CSS3 colors are supported except for 
>> extended named colors
>>
>> I was hoping for more explanation as to how to build this array for the 
>> gradient, i.e. how will the color at position X of the array be interpreted 
>> by the HeatMapLayer? I have currently just been trying a bunch of colors in 
>> the array to disastrously colorful  results. 
>>
>> Any help would be appreciated.
>>
>> Thanks,
>> Hunter McMillen
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/qzB4csQPiNEJ.
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