Re: [Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-10 Thread Hunter McMillen
Sorry for the extremely vague description of my problem, I figured out the cause however. The weight property in the WeightedLocation object was being set to a String value when it only accepts numeric values. Sorry for the time waste. Hunter On Tuesday, July 10, 2012 1:49:19 PM UTC-4, Michae

Re: [Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-10 Thread Michael Geary
Clearly, you have an off-by-one error. Or maybe you need a closure. Or something else is wrong. Not much help, is it? :-) Give us a link to a test page and you may get some more useful replies... -Mike On Tue, Jul 10, 2012 at 10:07 AM, Hunter McMillen wrote: > I use a for in loop to iterate ov

[Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-10 Thread Hunter McMillen
I use a for in loop to iterate over the array so I don't believe that I could be reading past element 334, The extra comma would throw an error in firebug. 327: {"location":{"$a":-35.5,"ab":172},"weight":"11"} object music.js:730 328: {"location":{"$a":-36.5,"ab":151},"weight":"1"} object music

[Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-10 Thread Rossko
> Any thoughts as to why this could be happening? Wild guesses: You have a superflous comma at the end? Your code attempts to read beyoend the last element? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group,

[Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-10 Thread Hunter McMillen
I was hoping that you could help me with something else also. When I initially added the HeatmapLayer to our application is was hardcoded but it also worked fine. Now that I have moved it to a proper position in our application I receive this error on the last element of every data array I try

[Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-09 Thread Hunter McMillen
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 a

[Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-07 Thread Enoch Lau (Google Employee)
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: