Commit eca018fa29e5026d58ebb02bc68220ec2b9ea452

Authored by 王通
1 parent a2bbe2e9

1.

src/main/resources/static/pages/base/stationroute/addstationstemplate.html
... ... @@ -154,7 +154,6 @@ $('#add_station_template_mobal').on('AddStationTempMobal.show', function(e,map,a
154 154 },
155 155  
156 156 submitHandler : function(f) {
157   - debugger;
158 157 // 隐藏手动规划弹出层
159 158 $('#add_station_template_mobal').modal('hide');
160 159 var directionData = dir;
... ... @@ -189,6 +188,10 @@ $('#add_station_template_mobal').on('AddStationTempMobal.show', function(e,map,a
189 188 // 设置第一个站的时间
190 189 stationdataList[0].duration = '';
191 190 // 定义站点信息JSON字符串
  191 + for (var idx in stationdataList) {
  192 + stationdataList[idx].wgs.x = stationdataList[idx].potion.lng;
  193 + stationdataList[idx].wgs.y = stationdataList[idx].potion.lat;
  194 + }
192 195 var stationJSON = JSON.stringify(stationdataList);
193 196 var addLine = line.getLineObj();
194 197 // 参数集合
... ...