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

Revision: 83572
Author:   jeroendedauw
Date:     2011-03-09 09:02:26 +0000 (Wed, 09 Mar 2011)
Log Message:
-----------
some changes for sm

Modified Paths:
--------------
    branches/Maps0.8/includes/Maps_MappingService.php
    branches/Maps0.8/includes/features/Maps_BasePointMap.php
    branches/Maps0.8/includes/iMappingFeature.php
    branches/Maps0.8/includes/iMappingService.php
    branches/Maps0.8/includes/services/YahooMaps/Maps_YahooMaps.php

Modified: branches/Maps0.8/includes/Maps_MappingService.php
===================================================================
--- branches/Maps0.8/includes/Maps_MappingService.php   2011-03-09 07:53:08 UTC 
(rev 83571)
+++ branches/Maps0.8/includes/Maps_MappingService.php   2011-03-09 09:02:26 UTC 
(rev 83572)
@@ -236,6 +236,15 @@
         */
        public final function addDependency( $dependencyHtml ) {
                $this->dependencies[] = $dependencyHtml;
-       }       
+       }
        
+       /**
+        * @see iMappingService::getEarthZoom
+        * 
+        * @since 0.8
+        */
+       public function getEarthZoom() {
+               return 1;
+       }               
+       
 }
\ No newline at end of file

Modified: branches/Maps0.8/includes/features/Maps_BasePointMap.php
===================================================================
--- branches/Maps0.8/includes/features/Maps_BasePointMap.php    2011-03-09 
07:53:08 UTC (rev 83571)
+++ branches/Maps0.8/includes/features/Maps_BasePointMap.php    2011-03-09 
09:02:26 UTC (rev 83572)
@@ -24,30 +24,6 @@
        }
        
        /**
-        * Returns the specific parameters by first checking if they have been 
initialized yet,
-        * doing to work if this is not the case, and then returning them.
-        * 
-        * @return array
-        */
-       public final function getSpecificParameterInfo() {
-               if ( $this->specificParameters === false ) {
-                       $this->specificParameters = array();
-                       $this->initSpecificParamInfo( $this->specificParameters 
);
-               }
-               
-               return $this->specificParameters;
-       }
-       
-       /**
-        * Initializes the specific parameters.
-        * 
-        * Override this method to set parameters specific to a feature service 
comibination in
-        * the inheriting class.
-        */
-       protected function initSpecificParamInfo( array &$parameters ) {
-       }       
-       
-       /**
         * Handles the request from the parser hook by doing the work that's 
common for all
         * mapping services, calling the specific methods and finally returning 
the resulting output.
         *

Modified: branches/Maps0.8/includes/iMappingFeature.php
===================================================================
--- branches/Maps0.8/includes/iMappingFeature.php       2011-03-09 07:53:08 UTC 
(rev 83571)
+++ branches/Maps0.8/includes/iMappingFeature.php       2011-03-09 09:02:26 UTC 
(rev 83572)
@@ -14,23 +14,5 @@
  */
 interface iMappingFeature {
        
-       /**
-        * Adds the HTML specific to the mapping service to the output.
-        * 
-        * @since 0.6.5
-        * 
-        * @return string
-        */
-       function addSpecificMapHTML();
        
-       /**
-        * Returns the specific parameters by first checking if they have been 
initialized yet,
-        * doing to work if this is not the case, and then returning them.
-        * 
-        * @since 0.6.5
-        * 
-        * @return array
-        */
-       function getSpecificParameterInfo();
-       
 }
\ No newline at end of file

Modified: branches/Maps0.8/includes/iMappingService.php
===================================================================
--- branches/Maps0.8/includes/iMappingService.php       2011-03-09 07:53:08 UTC 
(rev 83571)
+++ branches/Maps0.8/includes/iMappingService.php       2011-03-09 09:02:26 UTC 
(rev 83572)
@@ -101,6 +101,15 @@
        function getDefaultZoom();
        
        /**
+        * Returns the zoomlevel that shows the whole earth for the mapping 
service.
+        * 
+        * @since 0.8
+        * 
+        * @return integer
+        */
+       public function getEarthZoom();
+       
+       /**
         * Returns a string that can be used as an unique ID for the map html 
element.
         * Increments the number by default, providing false for $increment 
will get
         * you the same ID as on the last request.

Modified: branches/Maps0.8/includes/services/YahooMaps/Maps_YahooMaps.php
===================================================================
--- branches/Maps0.8/includes/services/YahooMaps/Maps_YahooMaps.php     
2011-03-09 07:53:08 UTC (rev 83571)
+++ branches/Maps0.8/includes/services/YahooMaps/Maps_YahooMaps.php     
2011-03-09 09:02:26 UTC (rev 83572)
@@ -93,6 +93,15 @@
                global $egMapsYahooMapsZoom;
                return $egMapsYahooMapsZoom;
        }
+       
+       /**
+        * @see iMappingService::getEarthZoom
+        * 
+        * @since 0.8
+        */
+       public function getEarthZoom() {
+               return 17;
+       }       
 
        /**
         * @see MapsMappingService::getMapId


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to