Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php |
— | — | @@ -282,10 +282,20 @@ |
283 | 283 | * Create links to mapping services based on a wiki-editable message. The parameters |
284 | 284 | * available to the message are: |
285 | 285 | * |
| 286 | + * $1: The location in non-directional float notation. |
| 287 | + * $2: The location in directional DMS notation. |
| 288 | + * $3: The latitude in non-directional float notation. |
| 289 | + * $4 The longitude in non-directional float notation. |
| 290 | + * |
286 | 291 | * @return array |
287 | 292 | */ |
288 | 293 | protected function getServiceLinkParams() { |
289 | | - return array( ); // TODO |
| 294 | + return array( |
| 295 | + MapsCoordinateParser::formatCoordinates( $this->mCoordinateSet, 'float', false ), |
| 296 | + MapsCoordinateParser::formatCoordinates( $this->mCoordinateSet, 'dms', true ), |
| 297 | + $this->mCoordinateSet['lat'], |
| 298 | + $this->mCoordinateSet['lon'] |
| 299 | + ); |
290 | 300 | } |
291 | 301 | |
292 | 302 | /** |
Index: trunk/extensions/SemanticMaps/SemanticMaps.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | |
37 | 37 | // Only initialize the extension when all dependencies are present. |
38 | 38 | if ( defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' ) ) { |
39 | | - define( 'SM_VERSION', '0.6.4 a8' ); |
| 39 | + define( 'SM_VERSION', '0.6.4 a9' ); |
40 | 40 | |
41 | 41 | $useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath; |
42 | 42 | $smgScriptPath = ( $useExtensionPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/SemanticMaps'; |