Changeset 1378

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

drop some deprecated packages

Files:
2 removed
4 modified

Legend:

Unmodified
Added
Removed
  • g-map/files/js/gmap/AjaxMap.class.js

    r1273 r1378  
    2424                url += '&bounds=' + this.boundsUsed; 
    2525                url += '&action=pick'; 
    26                 url += '&lon=' + marker.getLatLng().x; 
    27                 url += '&lat=' + marker.getLatLng().y; 
     26                url += '&index=' + marker.index; 
    2827                var ajaxRequest = new AjaxRequest(); 
    2928                ajaxRequest.openGet(url + SID_ARG_2ND, function (map, id) { 
     
    10099                                                                marker = new GMarker(coordinates); 
    101100                                                        } 
     101                                                        marker.index = i; 
    102102                                                        GEvent.addListener(marker, "click", function (map, marker) { 
    103103                                                                return function () { 
  • 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. */ 
  • g-map/files/lib/page/MapAjaxPage.class.php

    r1374 r1378  
    5454                $this->lat = isset($_GET['lat']) ? floatval($_GET['lat']) : 0; 
    5555                $this->lon = isset($_GET['lon']) ? floatval($_GET['lon']) : 0; 
     56                 
     57                // pick action 
     58                $this->idx = isset($_GET['idx']) ? intval($_GET['idx']) : 0; 
    5659        } 
    5760 
     
    9093                $cluster = new GmapCluster($this->distance, $this->zoom); 
    9194                if($this->action == 'pick') { 
    92                         $ids = $cluster->getIDs($markers, $this->lat, $this->lon); 
     95                        $ids = $cluster->getIDs($markers, $this->idx); 
    9396                        if($ids === null) { 
    9497                                $this->datapoints = array();     
  • g-map/package.xml

    r1325 r1378  
    1010                <packagedescription language="it"><![CDATA[Questo pacchetto aggiunge una mappa di Google sul tuo forum.]]></packagedescription> 
    1111                <isunique>1</isunique> 
    12                 <version>2.0.5</version> 
     12                <version>2.0.6</version> 
    1313                <date>DATE</date> 
    1414                <plugin>com.woltlab.wcf</plugin> 
     
    4545                <eventlistener>eventlistener.xml</eventlistener> 
    4646        </instructions> 
     47         
     48        <instructions type="update" fromversion="2.0.5"> 
     49                <files>files.tar</files> 
     50                <templates>templates.tar</templates> 
     51        </instructions> 
    4752         
    4853        <instructions type="update" fromversion="2.0.4">