diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-28 20:55:46 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-28 20:55:46 -0400 |
| commit | 4972f112cd9db77dfd977c666029f9d7172bee53 (patch) | |
| tree | 79d0faf0579541db083748be0e76cf0eba967c4a | |
| parent | 6438a70116adf0516407a55606d859a5c85083d6 (diff) | |
snapping to point
| -rw-r--r-- | public/assets/test/ortho3.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/public/assets/test/ortho3.html b/public/assets/test/ortho3.html index 467cbec..86f92d8 100644 --- a/public/assets/test/ortho3.html +++ b/public/assets/test/ortho3.html @@ -100,7 +100,7 @@ var ArrowTool = MapTool.extend(function(base){ if (p) { document.body.style.cursor = "pointer" - last_point.assign(line.points[0]) + last_point.assign(p) cursor.x.a = cursor.x.b = last_point.a cursor.y.a = cursor.y.b = last_point.b } @@ -211,7 +211,6 @@ var Polyline = Fiber.extend(function(base){ var point for (var i = 0; i < this.points.length; i++){ point = this.points[i] - console.log(point.distanceTo( p )) if (point.distanceTo( p ) < 10/map.zoom) { return point } |
