Hi Larry,

1, Managed to use addListener in the toggleKML().

        google.maps.event.addListener(kmlArray[i], 'click', 
function(kmlEvent){
                  objMap.setCenter(kmlEvent.latLng);}); 

Am I correct in thinking that the listener must be added and removed per 
toggle of the KML layer?

    google.maps.event.clearListeners(kmlArray[iLastID], 'click');


2, I removed "preserveViewport" option and all worked as expected ;-)

Link <http://www.maiocv.com/test/MapV3API.html>

Best wishes,

Mark,

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