Hi,

You've missed out the closing </script> after the marker manager
include

On Aug 6, 5:38 pm, Rozmaha <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to build an application that utilizes the marker manager,
> however when I try to initialize it, it complains about the instance
> of the map that I am sending as the only parameter. In firefox this is
> the error code I get:
>
> map.getCurrentMapType() has no properties
>
> it refers to this line of code in the marker manager js file:
>
> me.projection_ = map.getCurrentMapType().getProjection();
>
> Did I forget to set a parameter for the map or the marker manager? I
> don't understand why this is happening, I don't think my code has
> anything to do with this.
>
> When I tried to do a blank page like this:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <title>Untitled Document</title>
> <script type="text/javascript" src="http://maps.google.com/maps?
> file=api&amp;v=2.x&amp;key=ABQIAAAAY13pH3fiRj5npOdYmbcTnhS4YfTjX3FU-23QwdnaQO7WY6sXrBSxHn71ZSH0KDujyPR-
> abmxsBRg5A"></script>
> <script src="http://gmaps-utility-library.googlecode.com/svn/trunk/
> markermanager/release/src/markermanager.js">
> <script>
> function loadMap(){
>
>         var map = new GMap2(document.getElementById("map"));
>         var mgr = new MarkerManager(map);
>
> }
>
> </script>
> </head>
>
> <body onLoad="loadMap()">
>
> <div id="map" style="width:300px; height:300px "></div>
>
> </body>
> </html>
>
> I get problems with onload, it says loadMap is not a function, of
> course when I remove all the google maps stuff it works????
>
> Any ideas?
> Thanks

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