Index: trunk/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php |
— | — | @@ -114,6 +114,13 @@ |
115 | 115 | global $wgParser; |
116 | 116 | |
117 | 117 | $params = $validator->getParameterValues(); |
| 118 | + |
| 119 | + // We can only take care of the zoom defaulting here, |
| 120 | + // as not all locations are available in whats passed to Validator. |
| 121 | + if ( $params['zoom'] === false && count( $params['locations'] ) <= 1 ) { |
| 122 | + $params['zoom'] = $this->service->getDefaultZoom(); |
| 123 | + } |
| 124 | + |
118 | 125 | $mapName = $this->service->getMapId(); |
119 | 126 | |
120 | 127 | $params['inputname'] = $input_name; |