You do get the error on your public page as well. Maybe Firebug is not
enabled for that page?

Regardless, here's what to do next.

Turn on Firebug's "break on error" option. This is a little orange "pause"
button - with the two vertical bars - near the top left corner of the
Firebug panel.

Now reload your page and it will stop at the line with the map.getBounds().
Rest the mouse over "map" in that code to see info about that variable. Is
it a Map object? Nope, it's a Window object. Oops.

90% of the time, this particular error (a variable contains a reference to
Window instead of what you expected) is caused when someone uses "this"
incorrectly. In a function that was not called as a method but with an
ordinary function call, "this" is the window object.

So let's check that. Look over on the right of the Firebug panel and click
on Stack to see the call stack. Now click on the second item in the stack -
the place where your current function was called - and you can see the call.

That should get you started on what to do from there...

-Mike

On Wed, Mar 30, 2011 at 11:14 AM, dadof2innh <[email protected]> wrote:

> Hi,
>
> I don't know if this is the place to ask the question, but I thought I
> would try.
>
> I work as a data analyst, so I don't program for a living.  I am
> definitely a newbie with google map apis.
> A co-worker asked me to try out the google maps to present some
> geodata. He wanted a Heatmap overlay on top of google maps, to display
> size dependent circles on top of airports around the USA.
>
> To start, I went to the heatmap api website and followed their
> tutorial get a simple heatmap to overlay on a google maps.
>
> here is the tutorial: http://www.heatmapapi.com/Sample_Googlev3.aspx
>
> Then I tried to run it locally but I received this error, and no
> heatmap overlay appeared.
>
> "map.getBounds "is not a function"
> I am running firebug on firefox and this error occurred here:
> Heatmap.js line 36
>
> I uploaded to my external site, the error went away, but still no
> heatmap overlay.
> here is where I ran the file:
>
> http://home.comcast.net/~rickandjudith/maps/map-simple19.html
>
> If someone can figure out what I am doing wrong, it would be greatly
> appreciated, thanks in advance!
>
> -rick
>
> --
> 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.
>
>

-- 
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