mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
Reference more prior work
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user