|
@@ -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)
|