subDesTagesMitExtraKaese 2 年之前
父節點
當前提交
7084e3d2ce
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      static/gps_logger/js/preprocessor.js

+ 2 - 2
static/gps_logger/js/preprocessor.js

@@ -248,12 +248,12 @@ function process(name, markers) {
   markers = RamerDouglasPeucker2d(valid, 0.00001) //.0001 = 7m
   d.push({
     label: `RamerDouglasPeucker2d ${markers.length}`,
-    data: markers.map(m => [m.lat, m.lng])
+    data: markers.map(m => [m.lng, m.lat])
   })
   markers = clean(markers)
   d.push({
     label: `cleaned ${markers.length}`,
-    data: markers.map(m => [m.lat, m.lng])
+    data: markers.map(m => [m.lng, m.lat])
   })
 
   plot.setData(d)