I'm having the same problem on IE (IE6 for me)
I have pasted a bare bones demonstration below.

I've placed the map_canvas div inside a map_parent div.  when you load
the page everything works fine.  you can left click or double click
(to zoom) on the map with no problem.

To activate the problem click on the 'toggle map' link twice.  this
sets the css display property of the map_parent div to 'none' and then
back to 'block'.  (esentially hiding then showing the map).  From this
point on (in IE6) you'll recieve the error "'$e.j' is null or not an
object" if you left click on the map.  You do not see this error in
other browsers like firefox.


Thanks,
Thomas K


<!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></title>
</head>
<body>
    <div id="map_parent">
        <div id="map_canvas" style="width: 640px; height: 480px">
        </div>
    </div>
    <a id="toggleMap" href="#">Toggle Map Display</a>

    <script src="http://maps.google.com/maps?file=api&amp;v=2";
type="text/javascript"></script>

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
jquery.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        map.setUIToDefault();

        var visible = true;
        $('#toggleMap').click(function() {
            if (visible) {
                $('#map_parent').css('display', 'none');
                visible = false;
            }
            else {
                $('#map_parent').css('display', 'block');
                map.checkResize();
                visible = true;
            }
        });
    </script>

</body>
</html>

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