r87279 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87278‎ | r87279 | r87280 >
Date:18:57, 2 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix zoom level bug
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
@@ -144,6 +144,9 @@
145145
146146 if ( options.zoom !== false ) {
147147 map.setZoom( options.zoom );
 148+ } // If no zoom level was provided, and there are not enough markers to fitbounds, show planet zoom level.
 149+ else if ( options.locations.length <= 1 ) {
 150+ map.setZoom( 1 );
148151 }
149152
150153 var centre;

Status & tagging log