|
|
@ -54,6 +54,7 @@ var Map = function (parent) { |
|
|
|
this.MultiLayers = false; |
|
|
|
this.CompareLayers = false; |
|
|
|
this.layers = false; |
|
|
|
this.isMark = false; |
|
|
|
|
|
|
|
this.ForecastPoints = null; |
|
|
|
this.ForecastBackwardPoints = null; |
|
|
@ -64,10 +65,15 @@ var Map = function (parent) { |
|
|
|
this.forwardStopPoint = null; |
|
|
|
this.centerPointTime = null; |
|
|
|
|
|
|
|
this.InfoPoint = new InfoPoint(this); |
|
|
|
|
|
|
|
this.Startup = function () { |
|
|
|
this.CreateMap(); |
|
|
|
this.InitCapture(); |
|
|
|
this.LoadWindTemplate(); |
|
|
|
this.InfoPoint.Startup(); |
|
|
|
|
|
|
|
$('#mark-button').on('click', this.onMarkClick.bind(this)); |
|
|
|
$('#draw-button').on('click', this.OnDrawButtonClick.bind(this)); |
|
|
|
$('#clear-button').on('click', this.OnClearButtonClick.bind(this)); |
|
|
|
$('#particle-switch a').on('click', this.OnParticleButtonClick.bind(this)); |
|
|
@ -616,4 +622,16 @@ var Map = function (parent) { |
|
|
|
if (value <= 1000) |
|
|
|
return 'rgb(192, 28, 36)'; |
|
|
|
}; |
|
|
|
|
|
|
|
this.onMarkClick = function () { |
|
|
|
$('#map').css('cursor', 'crosshair'); |
|
|
|
this.DrewInfoPoint(); |
|
|
|
}; |
|
|
|
|
|
|
|
this.DrewInfoPoint = function () { |
|
|
|
this.map.on('click', function (e) { |
|
|
|
console.log(e); |
|
|
|
//this.InfoPoint.ShowDialog();
|
|
|
|
}) |
|
|
|
}; |
|
|
|
}; |