Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayMap.php |
— | — | @@ -59,21 +59,26 @@ |
60 | 60 | protected function getParameterInfo() { |
61 | 61 | global $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultServices; |
62 | 62 | |
63 | | - return array_merge( MapsMapper::getCommonParameters(), array( |
64 | | - // TODO |
65 | | - 'mappingservice' => array( |
66 | | - 'default' => $egMapsDefaultServices['display_map'] |
67 | | - ), |
68 | | - 'coordinates' => array( |
69 | | - 'required' => true, |
70 | | - 'tolower' => false, |
71 | | - 'aliases' => array( 'coords', 'location', 'address' ), |
72 | | - 'criteria' => array( |
73 | | - new CriterionIsLocation() |
74 | | - ), |
75 | | - 'output-type' => 'coordinateSet', |
76 | | - ), |
77 | | - ) ); |
| 63 | + $params = MapsMapper::getCommonParameters(); |
| 64 | + |
| 65 | + $params['mappingservice']->default = $egMapsDefaultServices['display_map']; |
| 66 | + |
| 67 | + $params['coordinates'] = new Parameter( |
| 68 | + 'coordinates', |
| 69 | + Parameter::TYPE_STRING, |
| 70 | + null, |
| 71 | + array( 'coords', 'location', 'address' ), |
| 72 | + array( |
| 73 | + new CriterionIsLocation(), |
| 74 | + ) |
| 75 | + ); |
| 76 | + |
| 77 | + $params['coordinates']->lowerCaseValue = false; |
| 78 | + |
| 79 | + // TODO |
| 80 | + $params['coordinates']->outputTypes = array( 'coordinateSet' => array( 'coordinateSet' ) ); |
| 81 | + |
| 82 | + return $params; |
78 | 83 | } |
79 | 84 | |
80 | 85 | /** |