Zoom and Center not working when using multiple KmlLayers (Google maps)
问题 When I add multiple kmllayers to a map it ignores the zoom level and center that I've set for the map and instead centers on the last added layer. Can someone tell me how I'm suppose to set the zoom level and center of the map? <script> function initialize() { var location = new google.maps.LatLng(52.0,5.1); var mapOptions = { zoom: 15, center: location, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); //Add MapLayers