From d3b95680a4ea7f0af0adcc578397d4858b8f4c1b Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 28 Oct 2021 15:38:30 +0100 Subject: [PATCH] Midpoints and Vertexes should extend Feature() --- src/lib/create_midpoint.js | 2 ++ src/lib/create_vertex.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/lib/create_midpoint.js b/src/lib/create_midpoint.js index 766eb8546..4ce4f43ce 100644 --- a/src/lib/create_midpoint.js +++ b/src/lib/create_midpoint.js @@ -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) { diff --git a/src/lib/create_vertex.js b/src/lib/create_vertex.js index 682b83738..a8d41de74 100644 --- a/src/lib/create_vertex.js +++ b/src/lib/create_vertex.js @@ -1,3 +1,5 @@ +// TODO: This should be a "proper" feature - see feature_types/ + import * as Constants from '../constants'; /** @@ -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,