Adds station flag to map
这个提交包含在:
父节点
48c0c042a6
当前提交
c4bd9c45d9
共有 1 个文件被更改,包括 10 次插入 和 2 次删除
|
|
@ -522,8 +522,16 @@ class Stations extends CI_Model {
|
||||||
$_jsonresult = array();
|
$_jsonresult = array();
|
||||||
list($station_lat, $station_lng) = array(0,0);
|
list($station_lat, $station_lng) = array(0,0);
|
||||||
$station_active = $this->profile($this->find_active())->row();
|
$station_active = $this->profile($this->find_active())->row();
|
||||||
if (!empty($station_active)) { list($station_lat, $station_lng) = $this->qra->qra2latlong($station_active->station_gridsquare); }
|
|
||||||
if (($station_lat!=0)&&($station_lng!=0)) { $_jsonresult = array('lat'=>$station_lat,'lng'=>$station_lng,'html'=>$station_active->station_gridsquare,'label'=>$station_active->station_profile_name,'icon'=>'stationIcon'); }
|
$CI = &get_instance();
|
||||||
|
$CI->load->library('DxccFlag');
|
||||||
|
$flag = "";
|
||||||
|
if (!empty($station_active)) {
|
||||||
|
$flag = strtolower($CI->dxccflag->getISO($station_active->station_dxcc));
|
||||||
|
$flag = '<span class="fi fi-' . $flag .'"></span>';
|
||||||
|
list($station_lat, $station_lng) = $this->qra->qra2latlong($station_active->station_gridsquare);
|
||||||
|
}
|
||||||
|
if (($station_lat!=0)&&($station_lng!=0)) { $_jsonresult = array('lat'=>$station_lat,'lng'=>$station_lng,'html'=>$station_active->station_gridsquare,'label'=>$station_active->station_profile_name,'icon'=>'stationIcon','flag'=>$flag); }
|
||||||
return (count($_jsonresult)>0)?(array('station'=>$_jsonresult)):array();
|
return (count($_jsonresult)>0)?(array('station'=>$_jsonresult)):array();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用