Files
iD/js/id/graph/node.js
John Firebaugh 5a2444b551 Extract and fix extent/intersection calculations
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00

12 lines
205 B
JavaScript

iD.Node = iD.Entity.extend({
type: "node",
extent: function() {
return iD.geo.Extent(this.loc);
},
geometry: function() {
return this._poi ? 'point' : 'vertex';
}
});