Skip to content

Commit

Permalink
set FEATURE_ID_PROPERTY_NAME for pew pew source
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Oct 11, 2019
1 parent ab6e3d7 commit 84d659c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import _ from 'lodash';

import { FEATURE_ID_PROPERTY_NAME } from '../../../../common/constants';

const LAT_INDEX = 0;
const LON_INDEX = 1;

Expand All @@ -27,7 +29,7 @@ export function convertToLines(esResponse) {
const sourceBuckets = _.get(destBucket, 'sourceGrid.buckets', []);
for (let j = 0; j < sourceBuckets.length; j++) {
const {
key, // eslint-disable-line no-unused-vars
key,
sourceCentroid,
...rest
} = sourceBuckets[j];
Expand All @@ -46,6 +48,7 @@ export function convertToLines(esResponse) {
coordinates: [[sourceCentroid.location.lon, sourceCentroid.location.lat], dest]
},
properties: {
[FEATURE_ID_PROPERTY_NAME]: `${dest.join()},${key}`,
...rest
}
});
Expand Down

0 comments on commit 84d659c

Please sign in to comment.