Files
iD/modules/actions/add_vertex.js
T
Tom MacWright 266504d4e2 Baby steps mode
2016-06-06 16:54:24 -04:00

7 lines
283 B
JavaScript

// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/AddNodeToWayAction.as
module.exports = function(wayId, nodeId, index) {
return function(graph) {
return graph.replace(graph.entity(wayId).addNode(nodeId, index));
};
};