|
|
@ -648,7 +648,7 @@ var Map = function (parent) { |
|
|
|
L.marker([point[1], point[0]], { |
|
|
|
icon: L.divIcon({ |
|
|
|
className: 'time-label {0}-time-label'.format(className), |
|
|
|
html: this.NormalizeTime(point[1], point[3]) |
|
|
|
html: this.NormalizeTime(point[0], point[1], point[3]) |
|
|
|
}) |
|
|
|
}).addTo(features); |
|
|
|
}.bind(this)); |
|
|
@ -659,10 +659,10 @@ var Map = function (parent) { |
|
|
|
return pattern.format(param.Longitude, param.Latitude, param.Height, moment(param.ReleaseTime).format("MM/DD HH:mm")); |
|
|
|
}; |
|
|
|
|
|
|
|
this.NormalizeTime = function (lng, time) { |
|
|
|
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><span lng="point{0}">{1}</span>'.format(attr, value.format("MM/DD HH:mm")); |
|
|
|
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")); |
|
|
|
}; |
|
|
|
|
|
|
|
this.ShowWindLayer = function (data) { |
|
|
|