|
@@ -1334,7 +1334,10 @@ class common {
|
|
|
$origiNunMax = 0;
|
|
$origiNunMax = 0;
|
|
|
foreach($shippr_uncode_10 as $orgin){
|
|
foreach($shippr_uncode_10 as $orgin){
|
|
|
$i = $i + 1;
|
|
$i = $i + 1;
|
|
|
- $map = array("lat" =>$orgin['lat'],"lng" =>$orgin['lng']);
|
|
|
|
|
|
|
+ $map = array();
|
|
|
|
|
+ if(!empty($orgin['lat'])&&!empty($orgin['lng'])){
|
|
|
|
|
+ $map = array("lat" =>$orgin['lat'],"lng" =>$orgin['lng']);
|
|
|
|
|
+ }
|
|
|
//$json = '{"lng":121.8525,"lat":29.926545,"label":"'.$orgin['origin'].'","infor":"LAT KRABANG, THAILAND","sort":"0","stime":null,"ptype":"por"}';
|
|
//$json = '{"lng":121.8525,"lat":29.926545,"label":"'.$orgin['origin'].'","infor":"LAT KRABANG, THAILAND","sort":"0","stime":null,"ptype":"por"}';
|
|
|
//$map = json_decode($json,true);
|
|
//$map = json_decode($json,true);
|
|
|
if(!empty($map)){
|
|
if(!empty($map)){
|
|
@@ -1361,7 +1364,10 @@ class common {
|
|
|
$agentiNunMax = 0;
|
|
$agentiNunMax = 0;
|
|
|
foreach($consignee_uncode_10 as $agent){
|
|
foreach($consignee_uncode_10 as $agent){
|
|
|
$i = $i + 1;
|
|
$i = $i + 1;
|
|
|
- $map = array("lat" =>$agent['lat'],"lng" =>$agent['lng']);
|
|
|
|
|
|
|
+ $map = array();
|
|
|
|
|
+ if(!empty($agent['lat'])&&!empty($agent['lng'])){
|
|
|
|
|
+ $map = array("lat" =>$agent['lat'],"lng" =>$agent['lng']);
|
|
|
|
|
+ }
|
|
|
// $json = '{"lng":"100.78594000","lat":"13.68521000","label":"'.$agent['agent'].'","infor":"LAT KRABANG, THAILAND","sort":"0","stime":null,"ptype":"por"}';
|
|
// $json = '{"lng":"100.78594000","lat":"13.68521000","label":"'.$agent['agent'].'","infor":"LAT KRABANG, THAILAND","sort":"0","stime":null,"ptype":"por"}';
|
|
|
// $map = json_decode($json,true);
|
|
// $map = json_decode($json,true);
|
|
|
if(!empty($map)){
|
|
if(!empty($map)){
|