Reference more prior work

This commit is contained in:
Tom MacWright
2012-11-15 11:18:24 -05:00
parent 658cc5607c
commit 83373fa775
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ iD.operations.noop = function() {
};
};
// https://github.com/openstreetmap/josm/blob/mirror/src/org/openstreetmap/josm/command/AddCommand.java
iD.operations.addNode = function(node) {
return function(graph) {
return graph.replace(node, 'added a place');
@@ -18,12 +19,14 @@ iD.operations.startWay = function(way) {
};
};
// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/DeleteWayAction.as
iD.operations.remove = function(node) {
return function(graph) {
return graph.remove(node, 'removed a feature');
};
};
// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/AddNodeToWayAction.as
iD.operations.changeWayNodes = function(way, node) {
return function(graph) {
return graph.replace(way.update({
@@ -40,6 +43,8 @@ iD.operations.changeTags = function(node, tags) {
};
};
// 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.operations.move = function(entity, to) {
return function(graph) {
return graph.replace(entity.update({

View File

@@ -4,7 +4,7 @@ iD.Style = {};
//
// Since SVG does not support z-index, we sort roads manually with d3's `sort`
// and the `waystack` fn.
//
//
// This also chooses kosher CSS classes for ways, and marker images for POIs
iD.Style.highway_stack = {