diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-28 20:22:39 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-28 20:22:39 -0400 |
| commit | 6438a70116adf0516407a55606d859a5c85083d6 (patch) | |
| tree | f65e70d55c3fc2849b355023dac2a58a9ad5c5ff /public/assets/javascripts/rectangles/engine/map/ui_ortho.js | |
| parent | c0e5a31151dcdbf2b08707fba9008d003d87cd4f (diff) | |
finding closest point and segment
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/map/ui_ortho.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/map/ui_ortho.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/public/assets/javascripts/rectangles/engine/map/ui_ortho.js b/public/assets/javascripts/rectangles/engine/map/ui_ortho.js index 0c501ad..2177aaa 100644 --- a/public/assets/javascripts/rectangles/engine/map/ui_ortho.js +++ b/public/assets/javascripts/rectangles/engine/map/ui_ortho.js @@ -30,13 +30,13 @@ Map.UI.Ortho = function(map){ }) var currentTool = "polyline" - base.setTool = function(s){ - currentTool = s + base.add_tool = function(name, tool){ + base.tools[name] = tool } - base.tools = { - polyline: new PolylineTool, - position: new PositionTool, + base.set_tool = function(s){ + currentTool = s } + base.tools = {} base.wheel = new wheel({ el: map.el, |
