Commit 1ff0448e46056091c2a474b4bd8bd5c4ac5ecf9f
1 parent
465efdad
update
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/resources/static/pages/base/line/editRoute.html
| @@ -166,8 +166,8 @@ $('#edit_route_mobal').on('editRouteMobal.show', function(e,transGPS,editRoute,m | @@ -166,8 +166,8 @@ $('#edit_route_mobal').on('editRouteMobal.show', function(e,transGPS,editRoute,m | ||
| 166 | var sectionListTemp = arrayFormat.sectionList; | 166 | var sectionListTemp = arrayFormat.sectionList; |
| 167 | var sectionList = []; | 167 | var sectionList = []; |
| 168 | // 隔30个取一个点(相当于30s) | 168 | // 隔30个取一个点(相当于30s) |
| 169 | - for(var i = 0; i < sectionListTemp.length; i++) { | ||
| 170 | - sectionList[i] = sectionListTemp[i]; | 169 | + for(var i = 0; i*30 < sectionListTemp.length; i++) { |
| 170 | + sectionList[i] = sectionListTemp[i*30]; | ||
| 171 | } | 171 | } |
| 172 | sectionList[sectionList.length] = sectionListTemp[sectionListTemp.length-1]; | 172 | sectionList[sectionList.length] = sectionListTemp[sectionListTemp.length-1]; |
| 173 | 173 |