Index: trunk/extensions/Maps/includes/services/GoogleMaps3/jquery.googlemap.js |
— | — | @@ -144,6 +144,9 @@ |
145 | 145 | |
146 | 146 | if ( options.zoom !== false ) { |
147 | 147 | 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 ); |
148 | 151 | } |
149 | 152 | |
150 | 153 | var centre; |