I have read very similar posts to this and have been searching for a
few hours now, but i can't quite get this to work. I'm simply trying
to have the info window close as soon as the mouse rolls off the
marker. Here's my attempt:

<script type="text/javascript">
                                var map;


                                function initialize()
                                {


                                    if (GBrowserIsCompatible())
                                    {
                                        map = new GMap2
(document.getElementById
("map_canvas"));
                                        map.enableDoubleClickZoom();
                                        map.enableContinuousZoom();
                                        map.enableScrollWheelZoom();
                                        map.addControl(new
GMapTypeControl());
                                        map.addControl(new
GLargeMapControl());



                                        // function createMarker
(point, address, branch, phone){}
                                        function createMarker
(point,varCommID)
                                        {

                                            var marker = new GMarker
(point);
                                            var mIcon = marker.getIcon
();
                                            mIcon.image = "http://
www.easternshorehousing.com/images/map_point.png";
                                            mIcon.iconSize = new GSize
(16, 21);

                                            // Set up our
GMarkerOptions object
                                            markerOptions =
{ icon:mIcon };
                                            var marker = new GMarker
(point, markerOptions);
                                            GEvent.addListener(marker,
'mouseover', function() {marker.setImage('http://
www.easternshorehousing.com/images/css/arrowSmall80.png');});

                                            GEvent.addListener(marker,
'mouseout', function()
                                                                                
        {
                                                                                
                                
marker.setImage('http://www.easternshorehousing.com/
images/map_point.png'),
                                                                                
                                map.closeInfoWindow(map);


                                                                                
        });





                                               GEvent.addListener
(marker, 'mouseover', function(){
 
marker.openExtInfoWindow
(map,"custom_info_window_red","<div>Loading...</div>",
                                                {
                                                    ajaxUrl: "ajax/
OpenExtInfoWindow.aspx?sessMainID="+varCommID,
                                                    beakOffset: 3
                                                });
                                            });
                                            return marker;
                                        }

                                        map.setCenter(new GLatLng
(38.5, -75.8), 8);
                                        <%=strLoadGoogleMapPoint %>


                                    }
                                }
                            </script>



Any help is very much appreciated!! 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