fixed bug UI-171
This commit is contained in:
@@ -10,10 +10,10 @@ import java.io.Serializable;
|
||||
public class MarkerInfo implements Serializable {
|
||||
public String type; //封路,还是上报
|
||||
public String imageUrl; //上传完cos图片
|
||||
public Long lon; //经度
|
||||
public Long lat; //纬度
|
||||
public double lon; //经度
|
||||
public double lat; //纬度
|
||||
|
||||
public MarkerInfo(String type, String imageUrl, Long lon, Long lat) {
|
||||
public MarkerInfo(String type, String imageUrl, double lon, double lat) {
|
||||
this.type = type;
|
||||
this.imageUrl = imageUrl;
|
||||
this.lon = lon;
|
||||
|
||||
@@ -15,8 +15,8 @@ class MarkerInfoReceiver : BroadcastReceiver() {
|
||||
if (intent.action == "com.zhidao.roadcondition.marker.info"){
|
||||
var type = intent.getStringExtra("type")
|
||||
var imageUrl = intent.getStringExtra("imageUrl")
|
||||
var lat = intent.getLongExtra("lat",0)
|
||||
var lon = intent.getLongExtra("lon",0) //经度
|
||||
var lat = intent.getDoubleExtra("lat",0.0)
|
||||
var lon = intent.getDoubleExtra("lon",0.0) //经度
|
||||
Log.d("MarkerInfoReceiver", "type =" + type + "---->lat =" + lat + "----lon =" + lon + "---imageUrl =" + imageUrl)
|
||||
EventBus.getDefault().post(MarkerInfo(type, imageUrl,lon, lat))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user