- controller.map.coord2lon(event.localX));
- var way:Way = controller.connection.createWay({}, [startNode]);
- return new DrawWay(way, true);
- } else if ( event.type == MouseEvent.MOUSE_OVER ) {
- controller.map.setHighlight(focus, { hover: true });
- } else if ( event.type == MouseEvent.MOUSE_OUT ) {
- controller.map.setHighlight(focus, { hover: false });
- } else if ( event.type == MouseEvent.MOUSE_DOWN ) {
+ controller.map.coord2lon(event.localX), undo.push);
+ var way:Way = controller.connection.createWay({}, [startNode], undo.push);
+ MainUndoStack.getGlobalStack().addAction(undo);
+ return new DrawWay(way, true, false);