|
@@ -23,6 +23,7 @@ const trackLineStyle = (feature: any, resolution: any, map: any, color: any, pMa
|
|
|
const radius = 10
|
|
|
const longRadius = radius * Math.SQRT2;
|
|
|
const judgeIs = (p1: any[], p2: any[], p3: any[]) => {
|
|
|
+ const E = 0.00000001
|
|
|
const k1 = (ps: any[], pe: number[]) => {
|
|
|
return (pe[1] - ps[1]) / (pe[0] - ps[0])
|
|
|
}
|
|
@@ -38,7 +39,6 @@ const trackLineStyle = (feature: any, resolution: any, map: any, color: any, pMa
|
|
|
const s = (p: any[]) => {
|
|
|
return p3[0] === p[0] && p3[1] === p[1]
|
|
|
}
|
|
|
- const E = 0.00000001
|
|
|
return s(p1) || s(p2) || a(p2, p3) || d(p2, p3)
|
|
|
}
|
|
|
for (let i = 0; i <= 1; i += radio) {
|