I set up some markers on my map and then go back and click them (so I
can edit associated properties).  When creating the marker, I included
the following code:

        GEvent.addListener(marker, "click", function() {
          map.closeInfoWindow();
          makeMarkerCurrent(marker);
        });

        GEvent.addListener(marker, "dragstart", function() {
          map.closeInfoWindow();
          makeMarkerCurrent(marker);
        });

When I drag a marker, everything works as planned - the dragged marker
becomes current in my code.  However, when I click a marker, I get a
runtime error in IE7.

Line: 480
Error: 'undefined' is null or not an object

Note that the error does not occur during the execution of the
listener function, it happens inside the Google code.  I do get an
error in Firefox, as indicated in Firebug, but everything behaves OK:

a is undefined
[Qg.prototype=new Vk;Qg.prototype.fromLat...+f)/(1-f))*-c.vx
[b]);return new K(e,g)};

this is in main.js, line 480 (same as the line number in the IE7
error).

Another strange aspect is that, when I comment out the code in the
addListener for click, I still have the same issue (even though the
listener code does nothing now).

        GEvent.addListener(marker, "click", function() {
          //map.closeInfoWindow();
          //makeMarkerCurrent(marker);
        });

When I comment out the listener entirely things are ok (but obviously
nothing happens when I click).

Leading up to this point, nothing is different (a map is set up with
some markers, then I either click a marker (error) or drag a marker
(ok).

Safari is fine too.

Many 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