I have a very simple map (http://my-test.dreamhosters.com/
commonloader2.html) that is using AJAX API to load maps interface. The
map itself loads fine, but when I try to work with loaded classes (for
example, create new objects based on them) I get this error:
google.maps.Overlay is not a constructor. This is caused by something
as simple as:

    function NewOverlay () {}
    NewOverlay.prototype = new google.maps.Overlay();

The AJAX loader documentation is straightforward (http://
code.google.com/apis/maps/documentation/#AJAX_Loader): Use the
google.maps.* namespace for all classes, methods and properties you
currently use in the Google Maps API, replacing the G prefix with this
namespace.

Based on this description I replaced "new GOverlay()" with "new
google.maps.Overlay()". What am I doing wrong here?

Paul.
--~--~---------~--~----~------------~-------~--~----~
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