Changeset 7080
- Timestamp:
- 11/26/08 01:00:57 (6 weeks ago)
- Files:
-
- 1 modified
-
branches/1.7/plugins/GoogleMap/index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/plugins/GoogleMap/index.php
r7079 r7080 109 109 var boundary = null; 110 110 var locationMap = null; 111 if (console) 111 if (console) // Firebug loading hack 112 112 console.log('start'); 113 113 function adjustToBoundary() { … … 140 140 locationMap.setCenter(new GLatLng(<?php echo $lat;?>, <?php echo $lng;?>), <?php echo $zoom;?>); 141 141 boundary = new GLatLngBounds(locationMap.getCenter()); //, new GLatLng(<?php echo $lat+0.1;?>, <?php echo $lng+0.1;?>)); 142 //console.log(boundary);143 142 var locations = new Array(); 144 143 <?php … … 167 166 $lat = $response_csv[2]; 168 167 $lng = $response_csv[3]; 169 POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', $l at, $lng, NOW())");168 POD::execute("INSERT INTO {$database['prefix']}GMapLocations VALUES (".getBlogId().", '".POD::escapeString($locative['location'])."', $lng, $lat, NOW())"); 170 169 $found = true; 171 170 break; … … 195 194 if ($found && !is_null($lat)) { 196 195 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)');";198 196 } else 199 197 echo "\t\t\tif (process_count != undefined) process_count++;\n"; … … 202 200 ?> 203 201 //window.setTimeout('locationFetchPoller(<?php echo $count;?>);', polling_interval); 204 //console.log(boundary);205 202 adjustToBoundary(); 206 203 } else {
