mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-19 17:43:39 +00:00
8 lines
379 B
JavaScript
8 lines
379 B
JavaScript
// https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/MoveCommand.java
|
|
// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/MoveNodeAction.as
|
|
iD.actions.Move = function(entity, loc) {
|
|
return function(graph) {
|
|
return graph.replace(entity.update({loc: loc}), 'moved an element');
|
|
};
|
|
};
|