Index: trunk/extensions/SemanticMaps/YahooMaps/SM_YahooMapsQP.php |
— | — | @@ -88,6 +88,9 @@ |
89 | 89 | |
90 | 90 | } |
91 | 91 | |
| 92 | + /** |
| 93 | + * Returns type info, descriptions and allowed values for this QP's parameters after adding the spesific ones to the list. |
| 94 | + */ |
92 | 95 | public function getParameters() { |
93 | 96 | $params = parent::getParameters(); |
94 | 97 | |
Index: trunk/extensions/SemanticMaps/OpenLayers/SM_OpenLayersQP.php |
— | — | @@ -80,6 +80,9 @@ |
81 | 81 | /*]]>*/ </script>"; |
82 | 82 | } |
83 | 83 | |
| 84 | + /** |
| 85 | + * Returns type info, descriptions and allowed values for this QP's parameters after adding the spesific ones to the list. |
| 86 | + */ |
84 | 87 | public function getParameters() { |
85 | 88 | $params = parent::getParameters(); |
86 | 89 | |
Index: trunk/extensions/SemanticMaps/OpenStreetMap/SM_OSMQP.php |
— | — | @@ -92,6 +92,9 @@ |
93 | 93 | EOT; |
94 | 94 | } |
95 | 95 | |
| 96 | + /** |
| 97 | + * Returns type info, descriptions and allowed values for this QP's parameters after adding the spesific ones to the list. |
| 98 | + */ |
96 | 99 | public function getParameters() { |
97 | 100 | $params = parent::getParameters(); |
98 | 101 | |
Index: trunk/extensions/SemanticMaps/OpenStreetMap/SM_OSMFormInput.php |
— | — | @@ -13,6 +13,8 @@ |
14 | 14 | die( 'Not an entry point.' ); |
15 | 15 | } |
16 | 16 | |
| 17 | +// TODO: the js for this form input does not work yet. Requires fixing before the FI can be enabled. |
| 18 | + |
17 | 19 | final class SMOSMFormInput extends SMFormInput {
|
18 | 20 | |
19 | 21 | public $serviceName = MapsOSM::SERVICE_NAME; |
Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | |
27 | 27 | // Only initialize the extension when all dependencies are present. |
28 | 28 | if (defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' )) { |
29 | | - define('SM_VERSION', '0.5 a19'); |
| 29 | + define('SM_VERSION', '0.5 a20'); |
30 | 30 | |
31 | 31 | $smgScriptPath = $wgScriptPath . '/extensions/SemanticMaps'; |
32 | 32 | $smgIP = $IP . '/extensions/SemanticMaps'; |
Index: trunk/extensions/SemanticMaps/QueryPrinters/SM_QueryPrinters.php |
— | — | @@ -48,9 +48,16 @@ |
49 | 49 | } |
50 | 50 | |
51 | 51 | private static function initializeParams() { |
52 | | - global $egMapsDefaultServices, $egMapsDefaultCentre; |
| 52 | + global $egMapsDefaultServices, $egMapsDefaultCentre, $egMapsAvailableGeoServices, $egMapsDefaultGeoService; |
53 | 53 | |
54 | 54 | self::$parameters = array( |
| 55 | + 'geoservice' => array( |
| 56 | + 'aliases' => array(), |
| 57 | + 'criteria' => array( |
| 58 | + 'in_array' => array_keys($egMapsAvailableGeoServices) |
| 59 | + ), |
| 60 | + 'default' => $egMapsDefaultGeoService |
| 61 | + ), |
55 | 62 | 'format' => array( |
56 | 63 | 'aliases' => array(), |
57 | 64 | 'criteria' => array(), |
Index: trunk/extensions/SemanticMaps/GoogleMaps/SM_GoogleMapsQP.php |
— | — | @@ -120,6 +120,9 @@ |
121 | 121 | $this->output .= $onloadFunctions; |
122 | 122 | } |
123 | 123 | |
| 124 | + /** |
| 125 | + * Returns type info, descriptions and allowed values for this QP's parameters after adding the spesific ones to the list. |
| 126 | + */ |
124 | 127 | public function getParameters() { |
125 | 128 | $params = parent::getParameters(); |
126 | 129 | |