mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
Starting road drawing. Has bugs but exists.
This commit is contained in:
+13
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user