Starting road drawing. Has bugs but exists.

This commit is contained in:
Tom MacWright
2012-11-05 16:10:21 -05:00
parent 2340b89921
commit 2ee2b1cf46
4 changed files with 162 additions and 27 deletions
+13 -1
View File
@@ -70,7 +70,19 @@
iD.Hash().map(map);
iD.UI.bind();
iD.controller(map);
var controller = iD.controller(map);
d3.selectAll('button#place').on('click', function() {
controller.go(iD.actions.AddPlace);
});
d3.selectAll('button#road').on('click', function() {
controller.go(iD.actions.AddRoad);
});
d3.selectAll('button#area').on('click', function() {
controller.go(iD.actions.AddArea);
});
window.onresize = function() {
map.setSize(m.node().offsetWidth,