Index: trunk/extensions/Maps/includes/services/GoogleMaps3/jquery.googlemap.js |
— | — | @@ -112,7 +112,13 @@ |
113 | 113 | |
114 | 114 | // Add the Google KML/KMZ layers. |
115 | 115 | for ( i = options.gkml.length - 1; i >= 0; i-- ) { |
116 | | - var kmlLayer = new google.maps.KmlLayer( options.gkml[i], { map: map } ); |
| 116 | + var kmlLayer = new google.maps.KmlLayer( |
| 117 | + options.gkml[i], |
| 118 | + { |
| 119 | + map: map, |
| 120 | + preserveViewport: !options.kmlrezoom |
| 121 | + } |
| 122 | + ); |
117 | 123 | } |
118 | 124 | |
119 | 125 | // If there are any non-Google KML/KMZ layers, load the geoxml library and use it to add these layers. |