Index: trunk/extensions/Maps/includes/manipulations/Maps_ParamZoom.php |
— | — | @@ -29,8 +29,9 @@ |
30 | 30 | */ |
31 | 31 | public function doManipulation( &$value, Parameter $parameter, array &$parameters ) { |
32 | 32 | if ( $parameter->wasSetToDefault() ) { |
33 | | - //var_dump($parameters['coordinates']);exit; |
34 | | - // TODO |
| 33 | + if ( count( $parameters['coordinates']->getValue() ) > 1 ) { |
| 34 | + $value = 'null'; |
| 35 | + } |
35 | 36 | } |
36 | 37 | } |
37 | 38 | |
Index: trunk/extensions/Maps/includes/Maps_Mapper.php |
— | — | @@ -175,9 +175,7 @@ |
176 | 176 | |
177 | 177 | $params['zoom'] = new Parameter( |
178 | 178 | 'zoom', |
179 | | - Parameter::TYPE_INTEGER, |
180 | | - 10, |
181 | | - array( 'service' ) |
| 179 | + Parameter::TYPE_INTEGER |
182 | 180 | ); |
183 | 181 | |
184 | 182 | $params['width'] = new Parameter( |
Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayPoint.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | $params['mappingservice']->setDefault( $egMapsDefaultServices['display_point'] ); |
62 | 62 | $params['mappingservice']->addManipulations( new MapsParamService( 'display_point' ) ); |
63 | 63 | |
64 | | - $params['zoom']->addDependencies( 'coordinates' ); |
| 64 | + $params['zoom']->addDependencies( 'coordinates', 'mappingservice' ); |
65 | 65 | $params['zoom']->addManipulations( new MapsParamZoom() ); |
66 | 66 | |
67 | 67 | $params['coordinates'] = new ListParameter( 'coordinates', ';' ); |