On Jul 10, 4:40 pm, "[email protected]"
<[email protected]> wrote:
> Hi,
>
> I'm getting the following error:
>
> Message: Object required
> Line: 299
> Char: 26
> Code: 0
> URI:http://maps.gstatic.com/intl/en_ALL/mapfiles/159e/maps2.api/main.js

The problem is what you have above your function "initialize" in the
code. Those lines are run as the page is being read by the browser,
because they are not in a function to be executed later. At the time
they are read, "map_canvas" hasn't been found, and neither are
myLatitude and myLongitude known.

As the map appears to work, you can remove those five lines of code
entirely. You could add
  map.setUIToDefault()
into your function initialize().

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to