I had the same problem, i'm using the marker-click to shrink the map
to make place to view some (sub-)content next to the map and the map-
click to hide the subcontent and grow the map to the full size again.
With both events firing one after the other, the map_shrink from the
marker-event was always overriden by the map_grow from the map-event.

I've solved it with this workaround:

var markerclicked = false

var mapclick = GEvent.addListener(map, 'click', function(){
        if (markerclicked == false) {
            map_grow();
            }
        markerclicked = false;
        });

GEvent.addListener(trackmarker[n], 'click', function(){
                markerclicked = true;
                map_shrink();
         });


Since clicking the marker always fires the marker-event and then the
map-event one after the other, the markerclicked-value will toggle
between true and false with every click.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to