Skip to content

Commit

Permalink
Midpoints and Vertexes should extend Feature()
Browse files Browse the repository at this point in the history
  • Loading branch information
oodavid committed Oct 28, 2021
1 parent ec28524 commit d3b9568
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/create_midpoint.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO: This should be a "proper" feature - see feature_types/

import * as Constants from '../constants';

export default function(parent, startVertex, endVertex) {
Expand Down
3 changes: 3 additions & 0 deletions src/lib/create_vertex.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO: This should be a "proper" feature - see feature_types/

import * as Constants from '../constants';

/**
Expand All @@ -11,6 +13,7 @@ import * as Constants from '../constants';
* @param {boolean} selected
* @return {GeoJSON} Point
*/

export default function(parentId, coordinates, path, selected) {
return {
type: Constants.geojsonTypes.FEATURE,
Expand Down

0 comments on commit d3b9568

Please sign in to comment.