(List points, boolean close)
| 505 | } |
| 506 | |
| 507 | private GeneralPath buildPath(List points, boolean close) { |
| 508 | GeneralPath path = new GeneralPath(); |
| 509 | for (int i = 0; i < points.size(); i++) { |
| 510 | Point sp = engine.latLngToScreen((LatLng) points.get(i)); |
| 511 | if (i == 0) { |
| 512 | path.moveTo(sp.getX(), sp.getY()); |
| 513 | } else { |
| 514 | path.lineTo(sp.getX(), sp.getY()); |
| 515 | } |
| 516 | } |
| 517 | if (close) { |
| 518 | path.closePath(); |
| 519 | } |
| 520 | return path; |
| 521 | } |
| 522 | |
| 523 | // ---- Gestures -------------------------------------------------------- |
| 524 |