mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
19 lines
403 B
JavaScript
19 lines
403 B
JavaScript
iD.operations.Move = function(entityId, mode) {
|
|
var operation = function() {
|
|
mode.controller.enter(iD.modes.MoveWay(entityId));
|
|
};
|
|
|
|
operation.available = function(graph) {
|
|
return graph.entity(entityId).type === 'way';
|
|
};
|
|
|
|
operation.enabled = function() {
|
|
return true;
|
|
};
|
|
|
|
operation.id = "move";
|
|
operation.title = "Move";
|
|
|
|
return operation;
|
|
};
|