Show
Ignore:
Timestamp:
04/03/11 19:14:28 (2 years ago)
Author:
Torben Brodt
Message:

drop some deprecated packages

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • g-map/files/lib/data/gmap/GmapCluster.class.php

    r1236 r1378  
    8080         * @param       $markers        Array of lat and lon locations. 
    8181         */ 
    82         public function getMarkers(array $markers, $pick = array()) { 
     82        public function getMarkers(array $markers, $pick = null) { 
    8383                $clustered = array(); 
    8484 
     
    104104                        if (count($cluster) > 0) { 
    105105                                $cluster[] = $marker; 
     106                                if($pick !== null && count($clustered) == $pick - 1) { 
     107                                        $tmp = $this->getCluster($cluster, true); 
     108                                        return $tmp['ids']; 
     109                                } 
    106110                                $clustered[] = $this->getCluster($cluster); 
    107111                        } else { 
     112                                if($pick !== null && count($clustered) == $pick - 1) { 
     113                                        return array($marker['id']); 
     114                                } 
    108115                                $clustered[] = $marker; 
    109116                        } 
     
    116123         * @param       $markers        Array of lat and lon locations. 
    117124         */ 
    118         public function getIDs(array $markers, $lat, $lon) { 
     125        public function getIDs(array $markers, $idx) { 
    119126 
    120127                /* Loop until all markers have been compared. */