|
|
@ -195,11 +195,11 @@ var Map = function (parent) { |
|
|
|
|
|
|
|
if (this.showTimeTags) { |
|
|
|
//$('.point').show();
|
|
|
|
$('.time-label').show(); |
|
|
|
$('.time-label-content').show(); |
|
|
|
$(event.target).removeClass('default-text'); |
|
|
|
} else { |
|
|
|
//$('.point').hide();
|
|
|
|
$('.time-label').hide(); |
|
|
|
$('.time-label-content').hide(); |
|
|
|
$(event.target).addClass('default-text'); |
|
|
|
} |
|
|
|
}; |
|
|
@ -451,6 +451,7 @@ var Map = function (parent) { |
|
|
|
|
|
|
|
this.AddLabels(features, result.backward.points, 'actual'); |
|
|
|
this.AddLabels(features, result.forward.points, 'actual'); |
|
|
|
|
|
|
|
return features; |
|
|
|
}; |
|
|
|
|
|
|
@ -712,12 +713,12 @@ var Map = function (parent) { |
|
|
|
this.GetCenterLabel = function (param) { |
|
|
|
var pattern = '<p>经度:{0}</p><p>纬度:{1}</p><p>高度:{2}米</p><p>释放时间:{3}</p>'; |
|
|
|
return pattern.format(param.Longitude, param.Latitude, param.Height, moment(param.ReleaseTime, 'YYYY/MM/DD HH:mm').format("MM/DD HH:mm")); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
this.NormalizeTime = function (lat, lng, time) { |
|
|
|
var attr = lng.toString().split(".").join(""); |
|
|
|
var value = moment(time, "YYYYMMDD_HHmmss"); |
|
|
|
return '<a href="javascript:;" class="close-button" title="关闭"></a><div lng="point{0}"><p>经度:{1}</p><p>纬度: {2} </p><p>时间: {3}</p></div>'.format(attr, lat, lng, value.format("MM/DD HH:mm")); |
|
|
|
return '<div class="time-label-content" style="display: {0};"><a href="javascript:;" class="close-button" title="关闭"></a><div lng="point{1}"><p>经度:{2}</p><p>纬度: {3} </p><p>时间: {4}</p></div></div>'.format(this.showTimeTags ? "block" : "none", attr, lat, lng, value.format("MM/DD HH:mm")); |
|
|
|
}; |
|
|
|
|
|
|
|
this.ShowWindLayer = function (data) { |
|
|
|