Hi,

I've been using the AJAX API Loader to load Google Maps for a while,
however it's recently stopped working.  At first I thought some other
code was causing a problem, so I created a new htm page with just the
basics:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
    <title>g</title>
</head>
<body>
    <script type="text/javascript" src="http://www.google.com/jsapi?
key=api_key"></script>

    <script type="text/javascript">
        try {
            google.load("maps", "2");
            google.setOnLoadCallback(BuildMap());
        }
        catch (e) {
            alert(e);
        }

        function BuildMap() {
            mMap = new google.maps.Map2(document.getElementById
("map"));
            mMap.enableContinuousZoom();
            mMap.setCenter(new GLatLng(53.435719, -7.877197), 7);
        }
    </script>

    <div id="map"></div>
</body>
</html>

However when this page is loaded I get the following error message:

TypeError: google.maps.Map2 is not a constructor

Can anyone help with this error?

Mark

--

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


Reply via email to