http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69057

Revision: 69057
Author:   jeroendedauw
Date:     2010-07-05 16:23:04 +0000 (Mon, 05 Jul 2010)

Log Message:
-----------
Changes for 0.6.4 - re-added service links support

Modified Paths:
--------------
    trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
    trunk/extensions/SemanticMaps/SemanticMaps.php

Modified: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
===================================================================
--- trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php       
2010-07-05 14:28:01 UTC (rev 69056)
+++ trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php       
2010-07-05 16:23:04 UTC (rev 69057)
@@ -282,10 +282,20 @@
         * Create links to mapping services based on a wiki-editable message. 
The parameters
         * available to the message are:
         * 
+        * $1: The location in non-directional float notation.
+        * $2: The location in directional DMS notation.
+        * $3: The latitude in non-directional float notation.
+        * $4 The longitude in non-directional float notation.
+        * 
         * @return array
         */
        protected function getServiceLinkParams() {
-               return array(  ); // TODO
+               return array(
+                       MapsCoordinateParser::formatCoordinates( 
$this->mCoordinateSet, 'float', false ),
+                       MapsCoordinateParser::formatCoordinates( 
$this->mCoordinateSet, 'dms', true ),
+                       $this->mCoordinateSet['lat'],
+                       $this->mCoordinateSet['lon']
+               );
        }
        
        /**

Modified: trunk/extensions/SemanticMaps/SemanticMaps.php
===================================================================
--- trunk/extensions/SemanticMaps/SemanticMaps.php      2010-07-05 14:28:01 UTC 
(rev 69056)
+++ trunk/extensions/SemanticMaps/SemanticMaps.php      2010-07-05 16:23:04 UTC 
(rev 69057)
@@ -35,7 +35,7 @@
 
 // Only initialize the extension when all dependencies are present.
 if ( defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' ) ) {
-       define( 'SM_VERSION', '0.6.4 a8' );
+       define( 'SM_VERSION', '0.6.4 a9' );
 
        $useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && 
isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath;
        $smgScriptPath  = ( $useExtensionPath ? $wgExtensionAssetsPath : 
$wgScriptPath . '/extensions' ) . '/SemanticMaps';     



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to