Chad, I apologize for not doing a better job explaining. Here are 2 demo maps. They both have a custom control the user can click to toggle the kml.
The app I am working on never knows what kml file it is going to be asked to display. Therefore you will see in the map options I have arbitrarily set the center to 0,0 and zoom to 5 This map has preserveViewport:false http://www.mappingsupport.com/forum_post/preserveViewport_kml_25.html 1. It correctly shows the kml data when the map first appears. Good. 2. Now click the control to turn the kml off and change the viewport by dragging the map. Turn the kml back on and the viewport you set by dragging is ignored. Bad This map has preserveViewport:true http://www.mappingsupport.com/forum_post/preserveViewport_kml_27.html 1. When the map first appears it is centered at 0,0. Bad. But if you drag the map back to Chicago and zoom in, you do see the kml. 2. Now click the control to turn the kml off and change the viewport by dragging the map. Turn the kml back on and the viewport you set by dragging remains the same. Good I am baffled on how to get 2 'Goods'. Is there some syntax that will let me initially set preserveViewport:false and then change it to preserveViewport:true? -- 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.
