Changeset 7080

Show
Ignore:
Timestamp:
11/26/08 01:00:57 (6 weeks ago)
Author:
daybreaker
Message:

refs #1131:

  • 경위도 순서 바뀐 문제로 판명되어 수정함.
  • 혹시 사용하고 있던 분들은 플러그인 테이블 날리고 다시 하시길...
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.7/plugins/GoogleMap/index.php

    r7079 r7080  
    109109    var boundary = null; 
    110110    var locationMap = null; 
    111     if (console) 
     111    if (console) // Firebug loading hack 
    112112        console.log('start'); 
    113113    function adjustToBoundary() { 
     
    140140            locationMap.setCenter(new GLatLng(<?php echo $lat;?>, <?php echo $lng;?>), <?php echo $zoom;?>); 
    141141            boundary = new GLatLngBounds(locationMap.getCenter()); //, new GLatLng(<?php echo $lat+0.1;?>, <?php echo $lng+0.1;?>)); 
    142             //console.log(boundary); 
    143142            var locations = new Array(); 
    144143<?php 
     
    167166                        $lat = $response_csv[2]; 
    168167                        $lng = $response_csv[3]; 
    169                         POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', $lat, $lng, NOW())"); 
     168                        POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', $lng, $lat, NOW())"); 
    170169                        $found = true; 
    171170                        break; 
     
    195194        if ($found && !is_null($lat)) { 
    196195            echo "\t\t\tGMap_addLocationMarkDirect(locationMap, {address:GMap_normalizeAddress('{$locative['location']}'), path:'{$locative['location']}'}, '".str_replace("'", "\\'", $locative['title'])."', encodeURI('".str_replace("'", "\\'", $locative['link'])."'), new GLatLng($lat, $lng), boundary, locations);\n"; 
    197             //echo "\t\t\tconsole.log('Boundary ('+boundary.getCenter()+', '+locationMap.getBoundsZoomLevel(boundary)+') affected by ($lat, $lng)');"; 
    198196        } else 
    199197            echo "\t\t\tif (process_count != undefined) process_count++;\n"; 
     
    202200?> 
    203201            //window.setTimeout('locationFetchPoller(<?php echo $count;?>);', polling_interval); 
    204             //console.log(boundary); 
    205202            adjustToBoundary(); 
    206203        } else {