Thank you gentlemen.
The only 'gotcha' here were my own mistakes.

Below is the cleaned up map.
When the map opens the API sets the viewport based on the KML data.
After the map opens then the viewport set by the user (via zoom/pan)
is retained while the KML data is toggled on/off.

I removed both addListenerOnce calls and adjusted the toggle_kml
function accordingly.

http://www.mappingsupport.com/forum_post/toggle_kml_better.html

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