r96229 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96228‎ | r96229 | r96230 >
Date:14:34, 4 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
hold intoa ccount the kmlzoom param for gkml
Modified paths:
  • /trunk/extensions/Maps/includes/services/GoogleMaps3/jquery.googlemap.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/includes/services/GoogleMaps3/jquery.googlemap.js
@@ -112,7 +112,13 @@
113113
114114 // Add the Google KML/KMZ layers.
115115 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+ );
117123 }
118124
119125 // If there are any non-Google KML/KMZ layers, load the geoxml library and use it to add these layers.