> var resLayer = new google.maps.KmlLayer(kmlUrl + '?dummy=' + (new > Date()).getTime()); > resLayer.setMap(map); > var newZoom = map.getZoom() + 1; > map.setZoom(newZoom);}
KmlLayer acts asynchronously. It won't have completed by the time you try to get the zoom level. You need to wait for the KML action to complete: http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=kml+loaded&qt_g=Search+this+group -- 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.
